@crypticdot/defituna-api 1.3.9 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +573 -58
- package/dist/index.d.ts +573 -58
- package/dist/index.js +92 -3
- package/dist/index.mjs +92 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ declare const NotificationEntity: {
|
|
|
10
10
|
readonly STAKING_POSITION: "staking_position";
|
|
11
11
|
readonly FUSION_LIMIT_ORDER: "fusion_limit_order";
|
|
12
12
|
readonly TRADE_HISTORY_ENTRY: "trade_history_entry";
|
|
13
|
+
readonly ORDER_HISTORY_ENTRY: "order_history_entry";
|
|
13
14
|
};
|
|
14
15
|
declare const NotificationAction: {
|
|
15
16
|
readonly CREATE: "create";
|
|
@@ -53,6 +54,27 @@ declare const TradeHistoryUIDirection: {
|
|
|
53
54
|
readonly OPEN_SHORT: "open_short";
|
|
54
55
|
readonly CLOSE_SHORT: "close_short";
|
|
55
56
|
};
|
|
57
|
+
declare const OrderHistoryOrderType: {
|
|
58
|
+
readonly MARKET: "market";
|
|
59
|
+
readonly LIMIT: "limit";
|
|
60
|
+
readonly TAKE_PROFIT_MARKET: "take_profit_market";
|
|
61
|
+
readonly STOP_LOSS_MARKET: "stop_loss_market";
|
|
62
|
+
readonly LIQUIDATION_MARKET: "liquidation_market";
|
|
63
|
+
};
|
|
64
|
+
declare const OrderHistoryStatus: {
|
|
65
|
+
readonly OPEN: "open";
|
|
66
|
+
readonly PARTIALLY_FILLED: "partially_filled";
|
|
67
|
+
readonly FILLED: "filled";
|
|
68
|
+
readonly CANCELLED: "cancelled";
|
|
69
|
+
readonly CLAIMED: "claimed";
|
|
70
|
+
readonly REJECTED: "rejected";
|
|
71
|
+
};
|
|
72
|
+
declare const OrderHistoryUIDirection: {
|
|
73
|
+
readonly BUY: "buy";
|
|
74
|
+
readonly SELL: "sell";
|
|
75
|
+
readonly LONG: "long";
|
|
76
|
+
readonly SHORT: "short";
|
|
77
|
+
};
|
|
56
78
|
declare const StakingPositionHistoryActionType$1: {
|
|
57
79
|
readonly STAKE: "stake";
|
|
58
80
|
readonly UNSTAKE: "unstake";
|
|
@@ -72,8 +94,9 @@ declare const WalletSubscriptionTopic: {
|
|
|
72
94
|
readonly FUSION_LIMIT_ORDERS: "fusion_limit_orders";
|
|
73
95
|
readonly STAKING_POSITION: "staking_position";
|
|
74
96
|
readonly TRADE_HISTORY: "trade_history";
|
|
97
|
+
readonly ORDER_HISTORY: "order_history";
|
|
75
98
|
};
|
|
76
|
-
declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
99
|
+
declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
77
100
|
declare const NotificationActionSchema: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
78
101
|
declare const PoolProviderSchema: z.ZodEnum<["orca", ...("orca" | "fusion")[]]>;
|
|
79
102
|
declare const TunaPositionStateSchema: z.ZodEnum<["open", ...("open" | "liquidated" | "closed_by_limit_order" | "closed")[]]>;
|
|
@@ -81,9 +104,12 @@ declare const TunaSpotPositionStateSchema: z.ZodEnum<["open", ...("open" | "clos
|
|
|
81
104
|
declare const LimitOrderStateSchema: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "complete" | "cancelled")[]]>;
|
|
82
105
|
declare const TradeHistoryActionSchema: z.ZodEnum<["swap", ...("swap" | "limit_order_fill" | "position_increase" | "position_decrease" | "take_profit" | "stop_loss" | "liquidation")[]]>;
|
|
83
106
|
declare const TradeHistoryUIDirectionSchema: z.ZodEnum<["buy", ...("buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short")[]]>;
|
|
107
|
+
declare const OrderHistoryOrderTypeSchema: z.ZodEnum<["market", ...("market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market")[]]>;
|
|
108
|
+
declare const OrderHistoryStatusSchema: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected")[]]>;
|
|
109
|
+
declare const OrderHistoryUIDirectionSchema: z.ZodEnum<["buy", ...("buy" | "sell" | "long" | "short")[]]>;
|
|
84
110
|
declare const StakingPositionHistoryActionTypeSchema: z.ZodEnum<["stake", ...("stake" | "unstake" | "withdraw" | "claim_rewards" | "compound_rewards")[]]>;
|
|
85
111
|
declare const PoolSubscriptionTopicSchema: z.ZodEnum<["order_book", ...("order_book" | "pool_prices" | "pool_swaps")[]]>;
|
|
86
|
-
declare const WalletSubscriptionTopicSchema: z.ZodEnum<["tuna_positions", ...("staking_position" | "tuna_positions" | "tuna_spot_positions" | "lending_positions" | "fusion_limit_orders" | "trade_history")[]]>;
|
|
112
|
+
declare const WalletSubscriptionTopicSchema: z.ZodEnum<["tuna_positions", ...("staking_position" | "tuna_positions" | "tuna_spot_positions" | "lending_positions" | "fusion_limit_orders" | "trade_history" | "order_history")[]]>;
|
|
87
113
|
declare const PaginationMeta$1: z.ZodObject<{
|
|
88
114
|
total: z.ZodNumber;
|
|
89
115
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -122,6 +148,26 @@ declare const Market$1: z.ZodObject<{
|
|
|
122
148
|
liquidationThreshold: z.ZodNumber;
|
|
123
149
|
oraclePriceDeviationThreshold: z.ZodNumber;
|
|
124
150
|
limitOrderExecutionFee: z.ZodNumber;
|
|
151
|
+
maxSpotPositionSizeA: z.ZodObject<{
|
|
152
|
+
amount: z.ZodBigInt;
|
|
153
|
+
usd: z.ZodNumber;
|
|
154
|
+
}, "strip", z.ZodTypeAny, {
|
|
155
|
+
amount: bigint;
|
|
156
|
+
usd: number;
|
|
157
|
+
}, {
|
|
158
|
+
amount: bigint;
|
|
159
|
+
usd: number;
|
|
160
|
+
}>;
|
|
161
|
+
maxSpotPositionSizeB: z.ZodObject<{
|
|
162
|
+
amount: z.ZodBigInt;
|
|
163
|
+
usd: z.ZodNumber;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
amount: bigint;
|
|
166
|
+
usd: number;
|
|
167
|
+
}, {
|
|
168
|
+
amount: bigint;
|
|
169
|
+
usd: number;
|
|
170
|
+
}>;
|
|
125
171
|
borrowedFundsA: z.ZodObject<{
|
|
126
172
|
amount: z.ZodBigInt;
|
|
127
173
|
usd: z.ZodNumber;
|
|
@@ -183,6 +229,7 @@ declare const Market$1: z.ZodObject<{
|
|
|
183
229
|
usd: number;
|
|
184
230
|
}>;
|
|
185
231
|
disabled: z.ZodBoolean;
|
|
232
|
+
createdAt: z.ZodDate;
|
|
186
233
|
}, "strip", z.ZodTypeAny, {
|
|
187
234
|
address: string;
|
|
188
235
|
addressLookupTable: string;
|
|
@@ -198,6 +245,14 @@ declare const Market$1: z.ZodObject<{
|
|
|
198
245
|
liquidationThreshold: number;
|
|
199
246
|
oraclePriceDeviationThreshold: number;
|
|
200
247
|
limitOrderExecutionFee: number;
|
|
248
|
+
maxSpotPositionSizeA: {
|
|
249
|
+
amount: bigint;
|
|
250
|
+
usd: number;
|
|
251
|
+
};
|
|
252
|
+
maxSpotPositionSizeB: {
|
|
253
|
+
amount: bigint;
|
|
254
|
+
usd: number;
|
|
255
|
+
};
|
|
201
256
|
borrowedFundsA: {
|
|
202
257
|
amount: bigint;
|
|
203
258
|
usd: number;
|
|
@@ -223,6 +278,7 @@ declare const Market$1: z.ZodObject<{
|
|
|
223
278
|
usd: number;
|
|
224
279
|
};
|
|
225
280
|
disabled: boolean;
|
|
281
|
+
createdAt: Date;
|
|
226
282
|
}, {
|
|
227
283
|
address: string;
|
|
228
284
|
addressLookupTable: string;
|
|
@@ -238,6 +294,14 @@ declare const Market$1: z.ZodObject<{
|
|
|
238
294
|
liquidationThreshold: number;
|
|
239
295
|
oraclePriceDeviationThreshold: number;
|
|
240
296
|
limitOrderExecutionFee: number;
|
|
297
|
+
maxSpotPositionSizeA: {
|
|
298
|
+
amount: bigint;
|
|
299
|
+
usd: number;
|
|
300
|
+
};
|
|
301
|
+
maxSpotPositionSizeB: {
|
|
302
|
+
amount: bigint;
|
|
303
|
+
usd: number;
|
|
304
|
+
};
|
|
241
305
|
borrowedFundsA: {
|
|
242
306
|
amount: bigint;
|
|
243
307
|
usd: number;
|
|
@@ -263,6 +327,7 @@ declare const Market$1: z.ZodObject<{
|
|
|
263
327
|
usd: number;
|
|
264
328
|
};
|
|
265
329
|
disabled: boolean;
|
|
330
|
+
createdAt: Date;
|
|
266
331
|
}>;
|
|
267
332
|
declare const TokenOraclePrice$1: z.ZodObject<{
|
|
268
333
|
mint: z.ZodString;
|
|
@@ -1518,6 +1583,100 @@ declare const TradeHistoryEntry$1: z.ZodObject<{
|
|
|
1518
1583
|
slot: bigint;
|
|
1519
1584
|
ts: Date;
|
|
1520
1585
|
}>;
|
|
1586
|
+
declare const OrderHistoryEntry$1: z.ZodObject<{
|
|
1587
|
+
id: z.ZodString;
|
|
1588
|
+
pool: z.ZodString;
|
|
1589
|
+
authority: z.ZodString;
|
|
1590
|
+
orderType: z.ZodEnum<["market", ...("market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market")[]]>;
|
|
1591
|
+
isReduceOnly: z.ZodNullable<z.ZodBoolean>;
|
|
1592
|
+
uiTakeProfitPrice: z.ZodNullable<z.ZodNumber>;
|
|
1593
|
+
uiStopLossPrice: z.ZodNullable<z.ZodNumber>;
|
|
1594
|
+
aToB: z.ZodBoolean;
|
|
1595
|
+
uiDirection: z.ZodEnum<["buy", ...("buy" | "sell" | "long" | "short")[]]>;
|
|
1596
|
+
uiPrice: z.ZodNullable<z.ZodNumber>;
|
|
1597
|
+
uiExecutionPrice: z.ZodNullable<z.ZodNumber>;
|
|
1598
|
+
status: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected")[]]>;
|
|
1599
|
+
baseToken: z.ZodObject<{
|
|
1600
|
+
amount: z.ZodBigInt;
|
|
1601
|
+
usd: z.ZodNumber;
|
|
1602
|
+
}, "strip", z.ZodTypeAny, {
|
|
1603
|
+
amount: bigint;
|
|
1604
|
+
usd: number;
|
|
1605
|
+
}, {
|
|
1606
|
+
amount: bigint;
|
|
1607
|
+
usd: number;
|
|
1608
|
+
}>;
|
|
1609
|
+
quoteToken: z.ZodObject<{
|
|
1610
|
+
amount: z.ZodBigInt;
|
|
1611
|
+
usd: z.ZodNumber;
|
|
1612
|
+
}, "strip", z.ZodTypeAny, {
|
|
1613
|
+
amount: bigint;
|
|
1614
|
+
usd: number;
|
|
1615
|
+
}, {
|
|
1616
|
+
amount: bigint;
|
|
1617
|
+
usd: number;
|
|
1618
|
+
}>;
|
|
1619
|
+
baseTokenConsumedAmount: z.ZodNullable<z.ZodBigInt>;
|
|
1620
|
+
quoteTokenFilledAmount: z.ZodNullable<z.ZodBigInt>;
|
|
1621
|
+
txSignature: z.ZodNullable<z.ZodString>;
|
|
1622
|
+
positionAddress: z.ZodNullable<z.ZodString>;
|
|
1623
|
+
slot: z.ZodBigInt;
|
|
1624
|
+
ts: z.ZodDate;
|
|
1625
|
+
}, "strip", z.ZodTypeAny, {
|
|
1626
|
+
status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
|
|
1627
|
+
authority: string;
|
|
1628
|
+
pool: string;
|
|
1629
|
+
id: string;
|
|
1630
|
+
aToB: boolean;
|
|
1631
|
+
uiDirection: "buy" | "sell" | "long" | "short";
|
|
1632
|
+
uiPrice: number | null;
|
|
1633
|
+
baseToken: {
|
|
1634
|
+
amount: bigint;
|
|
1635
|
+
usd: number;
|
|
1636
|
+
};
|
|
1637
|
+
quoteToken: {
|
|
1638
|
+
amount: bigint;
|
|
1639
|
+
usd: number;
|
|
1640
|
+
};
|
|
1641
|
+
txSignature: string | null;
|
|
1642
|
+
positionAddress: string | null;
|
|
1643
|
+
slot: bigint;
|
|
1644
|
+
ts: Date;
|
|
1645
|
+
orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
|
|
1646
|
+
isReduceOnly: boolean | null;
|
|
1647
|
+
uiTakeProfitPrice: number | null;
|
|
1648
|
+
uiStopLossPrice: number | null;
|
|
1649
|
+
uiExecutionPrice: number | null;
|
|
1650
|
+
baseTokenConsumedAmount: bigint | null;
|
|
1651
|
+
quoteTokenFilledAmount: bigint | null;
|
|
1652
|
+
}, {
|
|
1653
|
+
status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
|
|
1654
|
+
authority: string;
|
|
1655
|
+
pool: string;
|
|
1656
|
+
id: string;
|
|
1657
|
+
aToB: boolean;
|
|
1658
|
+
uiDirection: "buy" | "sell" | "long" | "short";
|
|
1659
|
+
uiPrice: number | null;
|
|
1660
|
+
baseToken: {
|
|
1661
|
+
amount: bigint;
|
|
1662
|
+
usd: number;
|
|
1663
|
+
};
|
|
1664
|
+
quoteToken: {
|
|
1665
|
+
amount: bigint;
|
|
1666
|
+
usd: number;
|
|
1667
|
+
};
|
|
1668
|
+
txSignature: string | null;
|
|
1669
|
+
positionAddress: string | null;
|
|
1670
|
+
slot: bigint;
|
|
1671
|
+
ts: Date;
|
|
1672
|
+
orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
|
|
1673
|
+
isReduceOnly: boolean | null;
|
|
1674
|
+
uiTakeProfitPrice: number | null;
|
|
1675
|
+
uiStopLossPrice: number | null;
|
|
1676
|
+
uiExecutionPrice: number | null;
|
|
1677
|
+
baseTokenConsumedAmount: bigint | null;
|
|
1678
|
+
quoteTokenFilledAmount: bigint | null;
|
|
1679
|
+
}>;
|
|
1521
1680
|
declare const StakingTreasury$1: z.ZodObject<{
|
|
1522
1681
|
address: z.ZodString;
|
|
1523
1682
|
stakedTokenMint: z.ZodString;
|
|
@@ -2026,7 +2185,7 @@ declare const OrderBookNotificationMeta: z.ZodObject<{
|
|
|
2026
2185
|
}>;
|
|
2027
2186
|
declare const PoolSwapNotification: z.ZodObject<{
|
|
2028
2187
|
meta: z.ZodTypeAny;
|
|
2029
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
2188
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
2030
2189
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
2031
2190
|
data: z.ZodObject<{
|
|
2032
2191
|
id: z.ZodString;
|
|
@@ -2057,7 +2216,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
2057
2216
|
authority: z.ZodNullable<z.ZodString>;
|
|
2058
2217
|
} | {
|
|
2059
2218
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
2060
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
2219
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
2061
2220
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
2062
2221
|
data: z.ZodObject<{
|
|
2063
2222
|
id: z.ZodString;
|
|
@@ -2099,7 +2258,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
2099
2258
|
amountUsd: number;
|
|
2100
2259
|
aToB: boolean;
|
|
2101
2260
|
};
|
|
2102
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2261
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
2103
2262
|
meta?: any;
|
|
2104
2263
|
} | {
|
|
2105
2264
|
authority: string | null;
|
|
@@ -2114,7 +2273,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
2114
2273
|
amountUsd: number;
|
|
2115
2274
|
aToB: boolean;
|
|
2116
2275
|
};
|
|
2117
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2276
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
2118
2277
|
meta?: any;
|
|
2119
2278
|
}, {
|
|
2120
2279
|
authority: string | null;
|
|
@@ -2129,7 +2288,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
2129
2288
|
amountUsd: number;
|
|
2130
2289
|
aToB: boolean;
|
|
2131
2290
|
};
|
|
2132
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2291
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
2133
2292
|
meta?: any;
|
|
2134
2293
|
} | {
|
|
2135
2294
|
authority: string | null;
|
|
@@ -2144,12 +2303,12 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
2144
2303
|
amountUsd: number;
|
|
2145
2304
|
aToB: boolean;
|
|
2146
2305
|
};
|
|
2147
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2306
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
2148
2307
|
meta?: any;
|
|
2149
2308
|
}>;
|
|
2150
2309
|
declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
2151
2310
|
meta: z.ZodTypeAny;
|
|
2152
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
2311
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
2153
2312
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
2154
2313
|
data: z.ZodObject<{
|
|
2155
2314
|
pool: z.ZodString;
|
|
@@ -2171,7 +2330,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
2171
2330
|
authority: z.ZodNullable<z.ZodString>;
|
|
2172
2331
|
} | {
|
|
2173
2332
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
2174
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
2333
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
2175
2334
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
2176
2335
|
data: z.ZodObject<{
|
|
2177
2336
|
pool: z.ZodString;
|
|
@@ -2201,7 +2360,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
2201
2360
|
sqrtPrice: bigint;
|
|
2202
2361
|
pool: string;
|
|
2203
2362
|
};
|
|
2204
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2363
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
2205
2364
|
meta?: any;
|
|
2206
2365
|
} | {
|
|
2207
2366
|
authority: string | null;
|
|
@@ -2213,7 +2372,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
2213
2372
|
sqrtPrice: bigint;
|
|
2214
2373
|
pool: string;
|
|
2215
2374
|
};
|
|
2216
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2375
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
2217
2376
|
meta?: any;
|
|
2218
2377
|
}, {
|
|
2219
2378
|
authority: string | null;
|
|
@@ -2225,7 +2384,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
2225
2384
|
sqrtPrice: bigint;
|
|
2226
2385
|
pool: string;
|
|
2227
2386
|
};
|
|
2228
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2387
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
2229
2388
|
meta?: any;
|
|
2230
2389
|
} | {
|
|
2231
2390
|
authority: string | null;
|
|
@@ -2237,7 +2396,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
2237
2396
|
sqrtPrice: bigint;
|
|
2238
2397
|
pool: string;
|
|
2239
2398
|
};
|
|
2240
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2399
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
2241
2400
|
meta?: any;
|
|
2242
2401
|
}>;
|
|
2243
2402
|
declare const OrderBookNotification: z.ZodObject<{
|
|
@@ -2254,7 +2413,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
2254
2413
|
priceStep: number;
|
|
2255
2414
|
inverted: boolean;
|
|
2256
2415
|
}>;
|
|
2257
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
2416
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
2258
2417
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
2259
2418
|
data: z.ZodObject<{
|
|
2260
2419
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -2325,7 +2484,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
2325
2484
|
authority: z.ZodNullable<z.ZodString>;
|
|
2326
2485
|
} | {
|
|
2327
2486
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
2328
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
2487
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
2329
2488
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
2330
2489
|
data: z.ZodObject<{
|
|
2331
2490
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -2418,7 +2577,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
2418
2577
|
priceStep: number;
|
|
2419
2578
|
inverted: boolean;
|
|
2420
2579
|
} | null | undefined;
|
|
2421
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2580
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
2422
2581
|
} | {
|
|
2423
2582
|
authority: string | null;
|
|
2424
2583
|
id: string;
|
|
@@ -2443,7 +2602,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
2443
2602
|
priceStep: number;
|
|
2444
2603
|
inverted: boolean;
|
|
2445
2604
|
} | null | undefined;
|
|
2446
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2605
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
2447
2606
|
}, {
|
|
2448
2607
|
authority: string | null;
|
|
2449
2608
|
id: string;
|
|
@@ -2468,7 +2627,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
2468
2627
|
priceStep: number;
|
|
2469
2628
|
inverted: boolean;
|
|
2470
2629
|
} | null | undefined;
|
|
2471
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2630
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
2472
2631
|
} | {
|
|
2473
2632
|
authority: string | null;
|
|
2474
2633
|
id: string;
|
|
@@ -2493,11 +2652,11 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
2493
2652
|
priceStep: number;
|
|
2494
2653
|
inverted: boolean;
|
|
2495
2654
|
} | null | undefined;
|
|
2496
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2655
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
2497
2656
|
}>;
|
|
2498
2657
|
declare const TunaPositionNotification: z.ZodObject<{
|
|
2499
2658
|
meta: z.ZodTypeAny;
|
|
2500
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
2659
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
2501
2660
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
2502
2661
|
data: z.ZodObject<{
|
|
2503
2662
|
address: z.ZodString;
|
|
@@ -2867,7 +3026,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2867
3026
|
authority: z.ZodNullable<z.ZodString>;
|
|
2868
3027
|
} | {
|
|
2869
3028
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
2870
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
3029
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
2871
3030
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
2872
3031
|
data: z.ZodObject<{
|
|
2873
3032
|
address: z.ZodString;
|
|
@@ -3327,7 +3486,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3327
3486
|
updatedAtSlot: bigint;
|
|
3328
3487
|
closedAt: Date | null;
|
|
3329
3488
|
};
|
|
3330
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
3489
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3331
3490
|
meta?: any;
|
|
3332
3491
|
} | {
|
|
3333
3492
|
authority: string | null;
|
|
@@ -3421,7 +3580,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3421
3580
|
updatedAtSlot: bigint;
|
|
3422
3581
|
closedAt: Date | null;
|
|
3423
3582
|
};
|
|
3424
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
3583
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3425
3584
|
meta?: any;
|
|
3426
3585
|
}, {
|
|
3427
3586
|
authority: string | null;
|
|
@@ -3515,7 +3674,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3515
3674
|
updatedAtSlot: bigint;
|
|
3516
3675
|
closedAt: Date | null;
|
|
3517
3676
|
};
|
|
3518
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
3677
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3519
3678
|
meta?: any;
|
|
3520
3679
|
} | {
|
|
3521
3680
|
authority: string | null;
|
|
@@ -3609,12 +3768,12 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3609
3768
|
updatedAtSlot: bigint;
|
|
3610
3769
|
closedAt: Date | null;
|
|
3611
3770
|
};
|
|
3612
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
3771
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3613
3772
|
meta?: any;
|
|
3614
3773
|
}>;
|
|
3615
3774
|
declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
3616
3775
|
meta: z.ZodTypeAny;
|
|
3617
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
3776
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3618
3777
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3619
3778
|
data: z.ZodObject<{
|
|
3620
3779
|
address: z.ZodString;
|
|
@@ -3768,7 +3927,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
3768
3927
|
authority: z.ZodNullable<z.ZodString>;
|
|
3769
3928
|
} | {
|
|
3770
3929
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
3771
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
3930
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3772
3931
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3773
3932
|
data: z.ZodObject<{
|
|
3774
3933
|
address: z.ZodString;
|
|
@@ -3964,7 +4123,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
3964
4123
|
leverage: number;
|
|
3965
4124
|
openedAtSlot: bigint;
|
|
3966
4125
|
};
|
|
3967
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4126
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3968
4127
|
meta?: any;
|
|
3969
4128
|
} | {
|
|
3970
4129
|
authority: string | null;
|
|
@@ -4010,7 +4169,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
4010
4169
|
leverage: number;
|
|
4011
4170
|
openedAtSlot: bigint;
|
|
4012
4171
|
};
|
|
4013
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4172
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4014
4173
|
meta?: any;
|
|
4015
4174
|
}, {
|
|
4016
4175
|
authority: string | null;
|
|
@@ -4056,7 +4215,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
4056
4215
|
leverage: number;
|
|
4057
4216
|
openedAtSlot: bigint;
|
|
4058
4217
|
};
|
|
4059
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4218
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4060
4219
|
meta?: any;
|
|
4061
4220
|
} | {
|
|
4062
4221
|
authority: string | null;
|
|
@@ -4102,12 +4261,12 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
4102
4261
|
leverage: number;
|
|
4103
4262
|
openedAtSlot: bigint;
|
|
4104
4263
|
};
|
|
4105
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4264
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4106
4265
|
meta?: any;
|
|
4107
4266
|
}>;
|
|
4108
4267
|
declare const LendingPositionNotification: z.ZodObject<{
|
|
4109
4268
|
meta: z.ZodTypeAny;
|
|
4110
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
4269
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
4111
4270
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4112
4271
|
data: z.ZodObject<{
|
|
4113
4272
|
address: z.ZodString;
|
|
@@ -4168,7 +4327,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
4168
4327
|
authority: z.ZodNullable<z.ZodString>;
|
|
4169
4328
|
} | {
|
|
4170
4329
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
4171
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
4330
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
4172
4331
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4173
4332
|
data: z.ZodObject<{
|
|
4174
4333
|
address: z.ZodString;
|
|
@@ -4246,7 +4405,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
4246
4405
|
usd: number;
|
|
4247
4406
|
};
|
|
4248
4407
|
};
|
|
4249
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4408
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4250
4409
|
meta?: any;
|
|
4251
4410
|
} | {
|
|
4252
4411
|
authority: string | null;
|
|
@@ -4267,7 +4426,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
4267
4426
|
usd: number;
|
|
4268
4427
|
};
|
|
4269
4428
|
};
|
|
4270
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4429
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4271
4430
|
meta?: any;
|
|
4272
4431
|
}, {
|
|
4273
4432
|
authority: string | null;
|
|
@@ -4288,7 +4447,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
4288
4447
|
usd: number;
|
|
4289
4448
|
};
|
|
4290
4449
|
};
|
|
4291
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4450
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4292
4451
|
meta?: any;
|
|
4293
4452
|
} | {
|
|
4294
4453
|
authority: string | null;
|
|
@@ -4309,12 +4468,12 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
4309
4468
|
usd: number;
|
|
4310
4469
|
};
|
|
4311
4470
|
};
|
|
4312
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4471
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4313
4472
|
meta?: any;
|
|
4314
4473
|
}>;
|
|
4315
4474
|
declare const LimitOrderNotification: z.ZodObject<{
|
|
4316
4475
|
meta: z.ZodTypeAny;
|
|
4317
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
4476
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
4318
4477
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4319
4478
|
data: z.ZodObject<{
|
|
4320
4479
|
address: z.ZodString;
|
|
@@ -4393,7 +4552,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
4393
4552
|
authority: z.ZodNullable<z.ZodString>;
|
|
4394
4553
|
} | {
|
|
4395
4554
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
4396
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
4555
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
4397
4556
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4398
4557
|
data: z.ZodObject<{
|
|
4399
4558
|
address: z.ZodString;
|
|
@@ -4495,7 +4654,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
4495
4654
|
openTxSignature: string;
|
|
4496
4655
|
closeTxSignature: string | null;
|
|
4497
4656
|
};
|
|
4498
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4657
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4499
4658
|
meta?: any;
|
|
4500
4659
|
} | {
|
|
4501
4660
|
authority: string | null;
|
|
@@ -4522,7 +4681,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
4522
4681
|
openTxSignature: string;
|
|
4523
4682
|
closeTxSignature: string | null;
|
|
4524
4683
|
};
|
|
4525
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4684
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4526
4685
|
meta?: any;
|
|
4527
4686
|
}, {
|
|
4528
4687
|
authority: string | null;
|
|
@@ -4549,7 +4708,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
4549
4708
|
openTxSignature: string;
|
|
4550
4709
|
closeTxSignature: string | null;
|
|
4551
4710
|
};
|
|
4552
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4711
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4553
4712
|
meta?: any;
|
|
4554
4713
|
} | {
|
|
4555
4714
|
authority: string | null;
|
|
@@ -4576,12 +4735,12 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
4576
4735
|
openTxSignature: string;
|
|
4577
4736
|
closeTxSignature: string | null;
|
|
4578
4737
|
};
|
|
4579
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4738
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4580
4739
|
meta?: any;
|
|
4581
4740
|
}>;
|
|
4582
4741
|
declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
4583
4742
|
meta: z.ZodTypeAny;
|
|
4584
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
4743
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
4585
4744
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4586
4745
|
data: z.ZodObject<{
|
|
4587
4746
|
id: z.ZodString;
|
|
@@ -4696,7 +4855,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4696
4855
|
authority: z.ZodNullable<z.ZodString>;
|
|
4697
4856
|
} | {
|
|
4698
4857
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
4699
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
4858
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
4700
4859
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4701
4860
|
data: z.ZodObject<{
|
|
4702
4861
|
id: z.ZodString;
|
|
@@ -4842,7 +5001,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4842
5001
|
slot: bigint;
|
|
4843
5002
|
ts: Date;
|
|
4844
5003
|
};
|
|
4845
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
5004
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4846
5005
|
meta?: any;
|
|
4847
5006
|
} | {
|
|
4848
5007
|
authority: string | null;
|
|
@@ -4877,7 +5036,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4877
5036
|
slot: bigint;
|
|
4878
5037
|
ts: Date;
|
|
4879
5038
|
};
|
|
4880
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
5039
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4881
5040
|
meta?: any;
|
|
4882
5041
|
}, {
|
|
4883
5042
|
authority: string | null;
|
|
@@ -4912,7 +5071,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4912
5071
|
slot: bigint;
|
|
4913
5072
|
ts: Date;
|
|
4914
5073
|
};
|
|
4915
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
5074
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4916
5075
|
meta?: any;
|
|
4917
5076
|
} | {
|
|
4918
5077
|
authority: string | null;
|
|
@@ -4947,12 +5106,349 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4947
5106
|
slot: bigint;
|
|
4948
5107
|
ts: Date;
|
|
4949
5108
|
};
|
|
4950
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
5109
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5110
|
+
meta?: any;
|
|
5111
|
+
}>;
|
|
5112
|
+
declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
5113
|
+
meta: z.ZodTypeAny;
|
|
5114
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5115
|
+
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5116
|
+
data: z.ZodObject<{
|
|
5117
|
+
id: z.ZodString;
|
|
5118
|
+
pool: z.ZodString;
|
|
5119
|
+
authority: z.ZodString;
|
|
5120
|
+
orderType: z.ZodEnum<["market", ...("market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market")[]]>;
|
|
5121
|
+
isReduceOnly: z.ZodNullable<z.ZodBoolean>;
|
|
5122
|
+
uiTakeProfitPrice: z.ZodNullable<z.ZodNumber>;
|
|
5123
|
+
uiStopLossPrice: z.ZodNullable<z.ZodNumber>;
|
|
5124
|
+
aToB: z.ZodBoolean;
|
|
5125
|
+
uiDirection: z.ZodEnum<["buy", ...("buy" | "sell" | "long" | "short")[]]>;
|
|
5126
|
+
uiPrice: z.ZodNullable<z.ZodNumber>;
|
|
5127
|
+
uiExecutionPrice: z.ZodNullable<z.ZodNumber>;
|
|
5128
|
+
status: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected")[]]>;
|
|
5129
|
+
baseToken: z.ZodObject<{
|
|
5130
|
+
amount: z.ZodBigInt;
|
|
5131
|
+
usd: z.ZodNumber;
|
|
5132
|
+
}, "strip", z.ZodTypeAny, {
|
|
5133
|
+
amount: bigint;
|
|
5134
|
+
usd: number;
|
|
5135
|
+
}, {
|
|
5136
|
+
amount: bigint;
|
|
5137
|
+
usd: number;
|
|
5138
|
+
}>;
|
|
5139
|
+
quoteToken: z.ZodObject<{
|
|
5140
|
+
amount: z.ZodBigInt;
|
|
5141
|
+
usd: z.ZodNumber;
|
|
5142
|
+
}, "strip", z.ZodTypeAny, {
|
|
5143
|
+
amount: bigint;
|
|
5144
|
+
usd: number;
|
|
5145
|
+
}, {
|
|
5146
|
+
amount: bigint;
|
|
5147
|
+
usd: number;
|
|
5148
|
+
}>;
|
|
5149
|
+
baseTokenConsumedAmount: z.ZodNullable<z.ZodBigInt>;
|
|
5150
|
+
quoteTokenFilledAmount: z.ZodNullable<z.ZodBigInt>;
|
|
5151
|
+
txSignature: z.ZodNullable<z.ZodString>;
|
|
5152
|
+
positionAddress: z.ZodNullable<z.ZodString>;
|
|
5153
|
+
slot: z.ZodBigInt;
|
|
5154
|
+
ts: z.ZodDate;
|
|
5155
|
+
}, "strip", z.ZodTypeAny, {
|
|
5156
|
+
status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
|
|
5157
|
+
authority: string;
|
|
5158
|
+
pool: string;
|
|
5159
|
+
id: string;
|
|
5160
|
+
aToB: boolean;
|
|
5161
|
+
uiDirection: "buy" | "sell" | "long" | "short";
|
|
5162
|
+
uiPrice: number | null;
|
|
5163
|
+
baseToken: {
|
|
5164
|
+
amount: bigint;
|
|
5165
|
+
usd: number;
|
|
5166
|
+
};
|
|
5167
|
+
quoteToken: {
|
|
5168
|
+
amount: bigint;
|
|
5169
|
+
usd: number;
|
|
5170
|
+
};
|
|
5171
|
+
txSignature: string | null;
|
|
5172
|
+
positionAddress: string | null;
|
|
5173
|
+
slot: bigint;
|
|
5174
|
+
ts: Date;
|
|
5175
|
+
orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
|
|
5176
|
+
isReduceOnly: boolean | null;
|
|
5177
|
+
uiTakeProfitPrice: number | null;
|
|
5178
|
+
uiStopLossPrice: number | null;
|
|
5179
|
+
uiExecutionPrice: number | null;
|
|
5180
|
+
baseTokenConsumedAmount: bigint | null;
|
|
5181
|
+
quoteTokenFilledAmount: bigint | null;
|
|
5182
|
+
}, {
|
|
5183
|
+
status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
|
|
5184
|
+
authority: string;
|
|
5185
|
+
pool: string;
|
|
5186
|
+
id: string;
|
|
5187
|
+
aToB: boolean;
|
|
5188
|
+
uiDirection: "buy" | "sell" | "long" | "short";
|
|
5189
|
+
uiPrice: number | null;
|
|
5190
|
+
baseToken: {
|
|
5191
|
+
amount: bigint;
|
|
5192
|
+
usd: number;
|
|
5193
|
+
};
|
|
5194
|
+
quoteToken: {
|
|
5195
|
+
amount: bigint;
|
|
5196
|
+
usd: number;
|
|
5197
|
+
};
|
|
5198
|
+
txSignature: string | null;
|
|
5199
|
+
positionAddress: string | null;
|
|
5200
|
+
slot: bigint;
|
|
5201
|
+
ts: Date;
|
|
5202
|
+
orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
|
|
5203
|
+
isReduceOnly: boolean | null;
|
|
5204
|
+
uiTakeProfitPrice: number | null;
|
|
5205
|
+
uiStopLossPrice: number | null;
|
|
5206
|
+
uiExecutionPrice: number | null;
|
|
5207
|
+
baseTokenConsumedAmount: bigint | null;
|
|
5208
|
+
quoteTokenFilledAmount: bigint | null;
|
|
5209
|
+
}>;
|
|
5210
|
+
id: z.ZodString;
|
|
5211
|
+
authority: z.ZodNullable<z.ZodString>;
|
|
5212
|
+
} | {
|
|
5213
|
+
meta: z.ZodNullable<z.ZodUndefined>;
|
|
5214
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5215
|
+
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5216
|
+
data: z.ZodObject<{
|
|
5217
|
+
id: z.ZodString;
|
|
5218
|
+
pool: z.ZodString;
|
|
5219
|
+
authority: z.ZodString;
|
|
5220
|
+
orderType: z.ZodEnum<["market", ...("market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market")[]]>;
|
|
5221
|
+
isReduceOnly: z.ZodNullable<z.ZodBoolean>;
|
|
5222
|
+
uiTakeProfitPrice: z.ZodNullable<z.ZodNumber>;
|
|
5223
|
+
uiStopLossPrice: z.ZodNullable<z.ZodNumber>;
|
|
5224
|
+
aToB: z.ZodBoolean;
|
|
5225
|
+
uiDirection: z.ZodEnum<["buy", ...("buy" | "sell" | "long" | "short")[]]>;
|
|
5226
|
+
uiPrice: z.ZodNullable<z.ZodNumber>;
|
|
5227
|
+
uiExecutionPrice: z.ZodNullable<z.ZodNumber>;
|
|
5228
|
+
status: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected")[]]>;
|
|
5229
|
+
baseToken: z.ZodObject<{
|
|
5230
|
+
amount: z.ZodBigInt;
|
|
5231
|
+
usd: z.ZodNumber;
|
|
5232
|
+
}, "strip", z.ZodTypeAny, {
|
|
5233
|
+
amount: bigint;
|
|
5234
|
+
usd: number;
|
|
5235
|
+
}, {
|
|
5236
|
+
amount: bigint;
|
|
5237
|
+
usd: number;
|
|
5238
|
+
}>;
|
|
5239
|
+
quoteToken: z.ZodObject<{
|
|
5240
|
+
amount: z.ZodBigInt;
|
|
5241
|
+
usd: z.ZodNumber;
|
|
5242
|
+
}, "strip", z.ZodTypeAny, {
|
|
5243
|
+
amount: bigint;
|
|
5244
|
+
usd: number;
|
|
5245
|
+
}, {
|
|
5246
|
+
amount: bigint;
|
|
5247
|
+
usd: number;
|
|
5248
|
+
}>;
|
|
5249
|
+
baseTokenConsumedAmount: z.ZodNullable<z.ZodBigInt>;
|
|
5250
|
+
quoteTokenFilledAmount: z.ZodNullable<z.ZodBigInt>;
|
|
5251
|
+
txSignature: z.ZodNullable<z.ZodString>;
|
|
5252
|
+
positionAddress: z.ZodNullable<z.ZodString>;
|
|
5253
|
+
slot: z.ZodBigInt;
|
|
5254
|
+
ts: z.ZodDate;
|
|
5255
|
+
}, "strip", z.ZodTypeAny, {
|
|
5256
|
+
status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
|
|
5257
|
+
authority: string;
|
|
5258
|
+
pool: string;
|
|
5259
|
+
id: string;
|
|
5260
|
+
aToB: boolean;
|
|
5261
|
+
uiDirection: "buy" | "sell" | "long" | "short";
|
|
5262
|
+
uiPrice: number | null;
|
|
5263
|
+
baseToken: {
|
|
5264
|
+
amount: bigint;
|
|
5265
|
+
usd: number;
|
|
5266
|
+
};
|
|
5267
|
+
quoteToken: {
|
|
5268
|
+
amount: bigint;
|
|
5269
|
+
usd: number;
|
|
5270
|
+
};
|
|
5271
|
+
txSignature: string | null;
|
|
5272
|
+
positionAddress: string | null;
|
|
5273
|
+
slot: bigint;
|
|
5274
|
+
ts: Date;
|
|
5275
|
+
orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
|
|
5276
|
+
isReduceOnly: boolean | null;
|
|
5277
|
+
uiTakeProfitPrice: number | null;
|
|
5278
|
+
uiStopLossPrice: number | null;
|
|
5279
|
+
uiExecutionPrice: number | null;
|
|
5280
|
+
baseTokenConsumedAmount: bigint | null;
|
|
5281
|
+
quoteTokenFilledAmount: bigint | null;
|
|
5282
|
+
}, {
|
|
5283
|
+
status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
|
|
5284
|
+
authority: string;
|
|
5285
|
+
pool: string;
|
|
5286
|
+
id: string;
|
|
5287
|
+
aToB: boolean;
|
|
5288
|
+
uiDirection: "buy" | "sell" | "long" | "short";
|
|
5289
|
+
uiPrice: number | null;
|
|
5290
|
+
baseToken: {
|
|
5291
|
+
amount: bigint;
|
|
5292
|
+
usd: number;
|
|
5293
|
+
};
|
|
5294
|
+
quoteToken: {
|
|
5295
|
+
amount: bigint;
|
|
5296
|
+
usd: number;
|
|
5297
|
+
};
|
|
5298
|
+
txSignature: string | null;
|
|
5299
|
+
positionAddress: string | null;
|
|
5300
|
+
slot: bigint;
|
|
5301
|
+
ts: Date;
|
|
5302
|
+
orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
|
|
5303
|
+
isReduceOnly: boolean | null;
|
|
5304
|
+
uiTakeProfitPrice: number | null;
|
|
5305
|
+
uiStopLossPrice: number | null;
|
|
5306
|
+
uiExecutionPrice: number | null;
|
|
5307
|
+
baseTokenConsumedAmount: bigint | null;
|
|
5308
|
+
quoteTokenFilledAmount: bigint | null;
|
|
5309
|
+
}>;
|
|
5310
|
+
id: z.ZodString;
|
|
5311
|
+
authority: z.ZodNullable<z.ZodString>;
|
|
5312
|
+
}, "strip", z.ZodTypeAny, {
|
|
5313
|
+
authority: string | null;
|
|
5314
|
+
id: string;
|
|
5315
|
+
action: "create" | "update";
|
|
5316
|
+
data: {
|
|
5317
|
+
status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
|
|
5318
|
+
authority: string;
|
|
5319
|
+
pool: string;
|
|
5320
|
+
id: string;
|
|
5321
|
+
aToB: boolean;
|
|
5322
|
+
uiDirection: "buy" | "sell" | "long" | "short";
|
|
5323
|
+
uiPrice: number | null;
|
|
5324
|
+
baseToken: {
|
|
5325
|
+
amount: bigint;
|
|
5326
|
+
usd: number;
|
|
5327
|
+
};
|
|
5328
|
+
quoteToken: {
|
|
5329
|
+
amount: bigint;
|
|
5330
|
+
usd: number;
|
|
5331
|
+
};
|
|
5332
|
+
txSignature: string | null;
|
|
5333
|
+
positionAddress: string | null;
|
|
5334
|
+
slot: bigint;
|
|
5335
|
+
ts: Date;
|
|
5336
|
+
orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
|
|
5337
|
+
isReduceOnly: boolean | null;
|
|
5338
|
+
uiTakeProfitPrice: number | null;
|
|
5339
|
+
uiStopLossPrice: number | null;
|
|
5340
|
+
uiExecutionPrice: number | null;
|
|
5341
|
+
baseTokenConsumedAmount: bigint | null;
|
|
5342
|
+
quoteTokenFilledAmount: bigint | null;
|
|
5343
|
+
};
|
|
5344
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5345
|
+
meta?: any;
|
|
5346
|
+
} | {
|
|
5347
|
+
authority: string | null;
|
|
5348
|
+
id: string;
|
|
5349
|
+
action: "create" | "update";
|
|
5350
|
+
data: {
|
|
5351
|
+
status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
|
|
5352
|
+
authority: string;
|
|
5353
|
+
pool: string;
|
|
5354
|
+
id: string;
|
|
5355
|
+
aToB: boolean;
|
|
5356
|
+
uiDirection: "buy" | "sell" | "long" | "short";
|
|
5357
|
+
uiPrice: number | null;
|
|
5358
|
+
baseToken: {
|
|
5359
|
+
amount: bigint;
|
|
5360
|
+
usd: number;
|
|
5361
|
+
};
|
|
5362
|
+
quoteToken: {
|
|
5363
|
+
amount: bigint;
|
|
5364
|
+
usd: number;
|
|
5365
|
+
};
|
|
5366
|
+
txSignature: string | null;
|
|
5367
|
+
positionAddress: string | null;
|
|
5368
|
+
slot: bigint;
|
|
5369
|
+
ts: Date;
|
|
5370
|
+
orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
|
|
5371
|
+
isReduceOnly: boolean | null;
|
|
5372
|
+
uiTakeProfitPrice: number | null;
|
|
5373
|
+
uiStopLossPrice: number | null;
|
|
5374
|
+
uiExecutionPrice: number | null;
|
|
5375
|
+
baseTokenConsumedAmount: bigint | null;
|
|
5376
|
+
quoteTokenFilledAmount: bigint | null;
|
|
5377
|
+
};
|
|
5378
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5379
|
+
meta?: any;
|
|
5380
|
+
}, {
|
|
5381
|
+
authority: string | null;
|
|
5382
|
+
id: string;
|
|
5383
|
+
action: "create" | "update";
|
|
5384
|
+
data: {
|
|
5385
|
+
status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
|
|
5386
|
+
authority: string;
|
|
5387
|
+
pool: string;
|
|
5388
|
+
id: string;
|
|
5389
|
+
aToB: boolean;
|
|
5390
|
+
uiDirection: "buy" | "sell" | "long" | "short";
|
|
5391
|
+
uiPrice: number | null;
|
|
5392
|
+
baseToken: {
|
|
5393
|
+
amount: bigint;
|
|
5394
|
+
usd: number;
|
|
5395
|
+
};
|
|
5396
|
+
quoteToken: {
|
|
5397
|
+
amount: bigint;
|
|
5398
|
+
usd: number;
|
|
5399
|
+
};
|
|
5400
|
+
txSignature: string | null;
|
|
5401
|
+
positionAddress: string | null;
|
|
5402
|
+
slot: bigint;
|
|
5403
|
+
ts: Date;
|
|
5404
|
+
orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
|
|
5405
|
+
isReduceOnly: boolean | null;
|
|
5406
|
+
uiTakeProfitPrice: number | null;
|
|
5407
|
+
uiStopLossPrice: number | null;
|
|
5408
|
+
uiExecutionPrice: number | null;
|
|
5409
|
+
baseTokenConsumedAmount: bigint | null;
|
|
5410
|
+
quoteTokenFilledAmount: bigint | null;
|
|
5411
|
+
};
|
|
5412
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5413
|
+
meta?: any;
|
|
5414
|
+
} | {
|
|
5415
|
+
authority: string | null;
|
|
5416
|
+
id: string;
|
|
5417
|
+
action: "create" | "update";
|
|
5418
|
+
data: {
|
|
5419
|
+
status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
|
|
5420
|
+
authority: string;
|
|
5421
|
+
pool: string;
|
|
5422
|
+
id: string;
|
|
5423
|
+
aToB: boolean;
|
|
5424
|
+
uiDirection: "buy" | "sell" | "long" | "short";
|
|
5425
|
+
uiPrice: number | null;
|
|
5426
|
+
baseToken: {
|
|
5427
|
+
amount: bigint;
|
|
5428
|
+
usd: number;
|
|
5429
|
+
};
|
|
5430
|
+
quoteToken: {
|
|
5431
|
+
amount: bigint;
|
|
5432
|
+
usd: number;
|
|
5433
|
+
};
|
|
5434
|
+
txSignature: string | null;
|
|
5435
|
+
positionAddress: string | null;
|
|
5436
|
+
slot: bigint;
|
|
5437
|
+
ts: Date;
|
|
5438
|
+
orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
|
|
5439
|
+
isReduceOnly: boolean | null;
|
|
5440
|
+
uiTakeProfitPrice: number | null;
|
|
5441
|
+
uiStopLossPrice: number | null;
|
|
5442
|
+
uiExecutionPrice: number | null;
|
|
5443
|
+
baseTokenConsumedAmount: bigint | null;
|
|
5444
|
+
quoteTokenFilledAmount: bigint | null;
|
|
5445
|
+
};
|
|
5446
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4951
5447
|
meta?: any;
|
|
4952
5448
|
}>;
|
|
4953
5449
|
declare const StakingPositionNotification: z.ZodObject<{
|
|
4954
5450
|
meta: z.ZodTypeAny;
|
|
4955
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
5451
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
4956
5452
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4957
5453
|
data: z.ZodObject<{
|
|
4958
5454
|
address: z.ZodString;
|
|
@@ -5129,7 +5625,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
5129
5625
|
authority: z.ZodNullable<z.ZodString>;
|
|
5130
5626
|
} | {
|
|
5131
5627
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
5132
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
5628
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5133
5629
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5134
5630
|
data: z.ZodObject<{
|
|
5135
5631
|
address: z.ZodString;
|
|
@@ -5345,7 +5841,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
5345
5841
|
lastUnstakedAt: Date | null;
|
|
5346
5842
|
withdrawAvailableAt: Date | null;
|
|
5347
5843
|
};
|
|
5348
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
5844
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5349
5845
|
meta?: any;
|
|
5350
5846
|
} | {
|
|
5351
5847
|
authority: string | null;
|
|
@@ -5388,7 +5884,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
5388
5884
|
lastUnstakedAt: Date | null;
|
|
5389
5885
|
withdrawAvailableAt: Date | null;
|
|
5390
5886
|
};
|
|
5391
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
5887
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5392
5888
|
meta?: any;
|
|
5393
5889
|
}, {
|
|
5394
5890
|
authority: string | null;
|
|
@@ -5431,7 +5927,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
5431
5927
|
lastUnstakedAt: Date | null;
|
|
5432
5928
|
withdrawAvailableAt: Date | null;
|
|
5433
5929
|
};
|
|
5434
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
5930
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5435
5931
|
meta?: any;
|
|
5436
5932
|
} | {
|
|
5437
5933
|
authority: string | null;
|
|
@@ -5474,7 +5970,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
5474
5970
|
lastUnstakedAt: Date | null;
|
|
5475
5971
|
withdrawAvailableAt: Date | null;
|
|
5476
5972
|
};
|
|
5477
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
5973
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5478
5974
|
meta?: any;
|
|
5479
5975
|
}>;
|
|
5480
5976
|
|
|
@@ -5488,6 +5984,13 @@ declare const schemas_NotificationEntity: typeof NotificationEntity;
|
|
|
5488
5984
|
declare const schemas_NotificationEntitySchema: typeof NotificationEntitySchema;
|
|
5489
5985
|
declare const schemas_OrderBookNotification: typeof OrderBookNotification;
|
|
5490
5986
|
declare const schemas_OrderBookNotificationMeta: typeof OrderBookNotificationMeta;
|
|
5987
|
+
declare const schemas_OrderHistoryEntryNotification: typeof OrderHistoryEntryNotification;
|
|
5988
|
+
declare const schemas_OrderHistoryOrderType: typeof OrderHistoryOrderType;
|
|
5989
|
+
declare const schemas_OrderHistoryOrderTypeSchema: typeof OrderHistoryOrderTypeSchema;
|
|
5990
|
+
declare const schemas_OrderHistoryStatus: typeof OrderHistoryStatus;
|
|
5991
|
+
declare const schemas_OrderHistoryStatusSchema: typeof OrderHistoryStatusSchema;
|
|
5992
|
+
declare const schemas_OrderHistoryUIDirection: typeof OrderHistoryUIDirection;
|
|
5993
|
+
declare const schemas_OrderHistoryUIDirectionSchema: typeof OrderHistoryUIDirectionSchema;
|
|
5491
5994
|
declare const schemas_PoolPriceUpdateNotification: typeof PoolPriceUpdateNotification;
|
|
5492
5995
|
declare const schemas_PoolProvider: typeof PoolProvider;
|
|
5493
5996
|
declare const schemas_PoolProviderSchema: typeof PoolProviderSchema;
|
|
@@ -5511,7 +6014,7 @@ declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscri
|
|
|
5511
6014
|
declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
|
|
5512
6015
|
declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
|
|
5513
6016
|
declare namespace schemas {
|
|
5514
|
-
export { FeesStatsGroup$1 as FeesStatsGroup, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, schemas_OrderBookNotificationMeta as OrderBookNotificationMeta, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, schemas_TradeHistoryAction as TradeHistoryAction, schemas_TradeHistoryActionSchema as TradeHistoryActionSchema, TradeHistoryEntry$1 as TradeHistoryEntry, schemas_TradeHistoryEntryNotification as TradeHistoryEntryNotification, schemas_TradeHistoryUIDirection as TradeHistoryUIDirection, schemas_TradeHistoryUIDirectionSchema as TradeHistoryUIDirectionSchema, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionNotification as TunaSpotPositionNotification, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
|
|
6017
|
+
export { FeesStatsGroup$1 as FeesStatsGroup, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, schemas_OrderBookNotificationMeta as OrderBookNotificationMeta, OrderHistoryEntry$1 as OrderHistoryEntry, schemas_OrderHistoryEntryNotification as OrderHistoryEntryNotification, schemas_OrderHistoryOrderType as OrderHistoryOrderType, schemas_OrderHistoryOrderTypeSchema as OrderHistoryOrderTypeSchema, schemas_OrderHistoryStatus as OrderHistoryStatus, schemas_OrderHistoryStatusSchema as OrderHistoryStatusSchema, schemas_OrderHistoryUIDirection as OrderHistoryUIDirection, schemas_OrderHistoryUIDirectionSchema as OrderHistoryUIDirectionSchema, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, schemas_TradeHistoryAction as TradeHistoryAction, schemas_TradeHistoryActionSchema as TradeHistoryActionSchema, TradeHistoryEntry$1 as TradeHistoryEntry, schemas_TradeHistoryEntryNotification as TradeHistoryEntryNotification, schemas_TradeHistoryUIDirection as TradeHistoryUIDirection, schemas_TradeHistoryUIDirectionSchema as TradeHistoryUIDirectionSchema, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionNotification as TunaSpotPositionNotification, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
|
|
5515
6018
|
}
|
|
5516
6019
|
|
|
5517
6020
|
type PoolProviderType = z.infer<typeof PoolProviderSchema>;
|
|
@@ -5520,6 +6023,9 @@ type TunaSpotPositionStateType = z.infer<typeof TunaSpotPositionStateSchema>;
|
|
|
5520
6023
|
type LimitOrderStateType = z.infer<typeof LimitOrderStateSchema>;
|
|
5521
6024
|
type TradeHistoryActionType = z.infer<typeof TradeHistoryActionSchema>;
|
|
5522
6025
|
type TradeHistoryUIDirectionType = z.infer<typeof TradeHistoryUIDirectionSchema>;
|
|
6026
|
+
type OrderHistoryOrderTypeType = z.infer<typeof OrderHistoryOrderTypeSchema>;
|
|
6027
|
+
type OrderHistoryStatusType = z.infer<typeof OrderHistoryStatusSchema>;
|
|
6028
|
+
type OrderHistoryUIDirectionType = z.infer<typeof OrderHistoryUIDirectionSchema>;
|
|
5523
6029
|
type StakingPositionHistoryActionType = z.infer<typeof StakingPositionHistoryActionTypeSchema>;
|
|
5524
6030
|
type PoolSubscriptionTopicType = z.infer<typeof PoolSubscriptionTopicSchema>;
|
|
5525
6031
|
type WalletSubscriptionTopicType = z.infer<typeof WalletSubscriptionTopicSchema>;
|
|
@@ -5540,6 +6046,7 @@ type TunaPosition = z.infer<typeof TunaPosition$1>;
|
|
|
5540
6046
|
type TunaSpotPosition = z.infer<typeof TunaSpotPosition$1>;
|
|
5541
6047
|
type LimitOrder = z.infer<typeof LimitOrder$1>;
|
|
5542
6048
|
type TradeHistoryEntry = z.infer<typeof TradeHistoryEntry$1>;
|
|
6049
|
+
type OrderHistoryEntry = z.infer<typeof OrderHistoryEntry$1>;
|
|
5543
6050
|
type StakingPosition = z.infer<typeof StakingPosition$1>;
|
|
5544
6051
|
type StakingTreasury = z.infer<typeof StakingTreasury$1>;
|
|
5545
6052
|
type StakingLeaderboardPage = z.infer<typeof StakingLeaderboardPage$1>;
|
|
@@ -5580,6 +6087,13 @@ type GetUserTradeHistoryOptions = {
|
|
|
5580
6087
|
limit?: number;
|
|
5581
6088
|
desc?: boolean;
|
|
5582
6089
|
};
|
|
6090
|
+
type GetUserOrderHistoryOptions = {
|
|
6091
|
+
pool?: string[];
|
|
6092
|
+
orderType?: OrderHistoryOrderTypeType[];
|
|
6093
|
+
cursor?: string;
|
|
6094
|
+
limit?: number;
|
|
6095
|
+
desc?: boolean;
|
|
6096
|
+
};
|
|
5583
6097
|
type DurationInMs = number;
|
|
5584
6098
|
declare enum ProviderFilter {
|
|
5585
6099
|
ORCA = "orca",
|
|
@@ -5652,6 +6166,7 @@ declare class TunaApiClient {
|
|
|
5652
6166
|
getUserLimitOrders(userAddress: string, options?: GetUserLimitOrdersOptions): Promise<LimitOrder[]>;
|
|
5653
6167
|
getUserLimitOrderByAddress(userAddress: string, limitOrderAddress: string): Promise<LimitOrder>;
|
|
5654
6168
|
getUserTradeHistory(userAddress: string, options?: GetUserTradeHistoryOptions): Promise<TradeHistoryEntry[]>;
|
|
6169
|
+
getUserOrderHistory(userAddress: string, options?: GetUserOrderHistoryOptions): Promise<OrderHistoryEntry[]>;
|
|
5655
6170
|
getUserStakingPosition(userAddress: string): Promise<StakingPosition>;
|
|
5656
6171
|
getUserStakingPositionHistory(userAddress: string): Promise<StakingPositionHistoryAction[]>;
|
|
5657
6172
|
getFeesStats(from: Date, to: Date, interval: string): Promise<FeesStatsGroup[]>;
|
|
@@ -5662,4 +6177,4 @@ declare class TunaApiClient {
|
|
|
5662
6177
|
private appendUrlSearchParams;
|
|
5663
6178
|
}
|
|
5664
6179
|
|
|
5665
|
-
export { type DurationInMs, type FeesStatsGroup, type GetPoolPriceCandlesOptions, type GetUserLimitOrdersOptions, type GetUserTradeHistoryOptions, type LendingPosition, type LimitOrder, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type SubscriptionPayload, type Tick, type TokenOraclePrice, type TradeHistoryActionType, type TradeHistoryEntry, type TradeHistoryUIDirectionType, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, type WalletSubscriptionTopicType, schemas };
|
|
6180
|
+
export { type DurationInMs, type FeesStatsGroup, type GetPoolPriceCandlesOptions, type GetUserLimitOrdersOptions, type GetUserOrderHistoryOptions, type GetUserTradeHistoryOptions, type LendingPosition, type LimitOrder, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type OrderHistoryEntry, type OrderHistoryOrderTypeType, type OrderHistoryStatusType, type OrderHistoryUIDirectionType, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type SubscriptionPayload, type Tick, type TokenOraclePrice, type TradeHistoryActionType, type TradeHistoryEntry, type TradeHistoryUIDirectionType, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, type WalletSubscriptionTopicType, schemas };
|