@mobula_labs/types 0.1.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.
Files changed (105) hide show
  1. package/README.md +380 -0
  2. package/dist/cjs/index.cjs +6405 -0
  3. package/dist/cjs/index.cjs.map +105 -0
  4. package/dist/esm/index.js +5262 -0
  5. package/dist/esm/index.js.map +105 -0
  6. package/dist/index.d.ts +89 -0
  7. package/dist/utils/constants/constants.d.ts +18 -0
  8. package/dist/utils/functions/bigintAbs.d.ts +1 -0
  9. package/dist/utils/functions/period.d.ts +3 -0
  10. package/dist/utils/functions/queryFilters.d.ts +21 -0
  11. package/dist/utils/functions/zodUtils.d.ts +15 -0
  12. package/dist/utils/schemas/BaseMessage.d.ts +27 -0
  13. package/dist/utils/schemas/BigIntLax.d.ts +4 -0
  14. package/dist/utils/schemas/DateQuery.d.ts +4 -0
  15. package/dist/utils/schemas/EnrichedHoldersData.d.ts +294 -0
  16. package/dist/utils/schemas/EnrichedMarketData.d.ts +7638 -0
  17. package/dist/utils/schemas/Filter.d.ts +35 -0
  18. package/dist/utils/schemas/MarketDetailsOutput.d.ts +2168 -0
  19. package/dist/utils/schemas/SecuritySchemas.d.ts +151 -0
  20. package/dist/utils/schemas/StringOrArray.d.ts +2 -0
  21. package/dist/utils/schemas/TokenDetailsOutput.d.ts +923 -0
  22. package/dist/utils/schemas/WalletDeployerSchema.d.ts +3735 -0
  23. package/dist/v1/all/AllAssetSchema.d.ts +117 -0
  24. package/dist/v1/all/BlockchainSchema.d.ts +333 -0
  25. package/dist/v1/market/CreateFeedSchema.d.ts +11 -0
  26. package/dist/v1/market/FundingRateSchema.d.ts +218 -0
  27. package/dist/v1/market/HoldersSchema.d.ts +96 -0
  28. package/dist/v1/market/MarketBlockchainPairsSchema.d.ts +1598 -0
  29. package/dist/v1/market/MarketBlockchainStatsSchema.d.ts +70 -0
  30. package/dist/v1/market/MarketDataSchema.d.ts +315 -0
  31. package/dist/v1/market/MarketHistoryPairSchema.d.ts +83 -0
  32. package/dist/v1/market/MarketHistorySchema.d.ts +80 -0
  33. package/dist/v1/market/MarketMultiDataSchema.d.ts +387 -0
  34. package/dist/v1/market/MarketMultiHistorySchema.d.ts +86 -0
  35. package/dist/v1/market/MarketMultiPricesSchema.d.ts +60 -0
  36. package/dist/v1/market/MarketNftSchema.d.ts +35 -0
  37. package/dist/v1/market/MarketPairSchema.d.ts +2119 -0
  38. package/dist/v1/market/MarketPairsSchema.d.ts +2803 -0
  39. package/dist/v1/market/MarketQuerySchema.d.ts +138 -0
  40. package/dist/v1/market/MarketSparklineSchema.d.ts +32 -0
  41. package/dist/v1/market/MarketTokenVsMarketSchema.d.ts +121 -0
  42. package/dist/v1/market/MarketTotalSchema.d.ts +15 -0
  43. package/dist/v1/market/MarketTradesPairSchema.d.ts +127 -0
  44. package/dist/v1/metadata/MetadataCategoriesSchema.d.ts +18 -0
  45. package/dist/v1/metadata/MetadataNewsSchema.d.ts +106 -0
  46. package/dist/v1/metadata/MetadataSchema.d.ts +941 -0
  47. package/dist/v1/metadata/MetadataTrendingsSchema.d.ts +84 -0
  48. package/dist/v1/metadata/SystemMetadataSchema.d.ts +161 -0
  49. package/dist/v1/misc/ListingStatusSchema.d.ts +8 -0
  50. package/dist/v1/misc/SubmitTokenSchema.d.ts +149 -0
  51. package/dist/v1/misc/UploadLogoSchema.d.ts +11 -0
  52. package/dist/v1/pulse/PulseSchema.d.ts +27561 -0
  53. package/dist/v1/search/SearchSchema.d.ts +3686 -0
  54. package/dist/v1/token/FirstBuyerSchema.d.ts +63 -0
  55. package/dist/v1/wallet/BalanceUSDSchema.d.ts +17 -0
  56. package/dist/v1/wallet/DeployerSchema.d.ts +2196 -0
  57. package/dist/v1/wallet/HistorySchema.d.ts +102 -0
  58. package/dist/v1/wallet/WalletLabelSchema.d.ts +35 -0
  59. package/dist/v1/wallet/WalletNFTSchema.d.ts +159 -0
  60. package/dist/v1/wallet/WalletPortfolioSchema.d.ts +2644 -0
  61. package/dist/v1/wallet/WalletSmartMoneySchema.d.ts +115 -0
  62. package/dist/v1/wallet/WalletTradesSchema.d.ts +2241 -0
  63. package/dist/v1/wallet/WalletTransactionSchema.d.ts +1093 -0
  64. package/dist/v2/asset/AssetDetailsSchema.d.ts +7393 -0
  65. package/dist/v2/asset/AssetPriceHistorySchema.d.ts +268 -0
  66. package/dist/v2/market/MarketDetailsSchema.d.ts +6393 -0
  67. package/dist/v2/market/MarketOHLCVHistorySchema.d.ts +241 -0
  68. package/dist/v2/perp/PerpModels.d.ts +523 -0
  69. package/dist/v2/perp/PerpOrderQuotingSchema.d.ts +56 -0
  70. package/dist/v2/swap/SwapQuotingBatchOutput.d.ts +3623 -0
  71. package/dist/v2/swap/SwapQuotingBatchSchema.d.ts +156 -0
  72. package/dist/v2/swap/SwapQuotingOutput.d.ts +2850 -0
  73. package/dist/v2/swap/SwapQuotingSchema.d.ts +89 -0
  74. package/dist/v2/swap/SwapSendOutput.d.ts +32 -0
  75. package/dist/v2/swap/SwapSendSchema.d.ts +12 -0
  76. package/dist/v2/token/TokenDetailsSchema.d.ts +3063 -0
  77. package/dist/v2/token/TokenKlineBsPointSchema.d.ts +137 -0
  78. package/dist/v2/token/TokenMarketsSchema.d.ts +5307 -0
  79. package/dist/v2/token/TokenOHLCVHistorySchema.d.ts +241 -0
  80. package/dist/v2/token/TokenPositionsSchema.d.ts +299 -0
  81. package/dist/v2/token/TokenSecurityOutput.d.ts +182 -0
  82. package/dist/v2/token/TokenSecurityQuery.d.ts +15 -0
  83. package/dist/v2/token/TokenSecuritySchema.d.ts +4 -0
  84. package/dist/v2/token/TokenTradesSchema.d.ts +18991 -0
  85. package/dist/v2/wallet/WalleAnalysisQuerySchema.d.ts +1135 -0
  86. package/dist/v2/wallet/WalleFundingQuerySchema.d.ts +57 -0
  87. package/dist/v2/wallet/WalletActivityV2Schema.d.ts +3303 -0
  88. package/dist/v2/wallet/WalletDeployerSchema.d.ts +2198 -0
  89. package/dist/v2/wallet/WalletPerpsPositionsSchema.d.ts +622 -0
  90. package/dist/v2/wallet/WalletPositionsSchema.d.ts +4332 -0
  91. package/dist/v2/wallet/WalletTokenBalancesSchema.d.ts +517 -0
  92. package/dist/wss/BalancePayloadSchema.d.ts +65 -0
  93. package/dist/wss/FastTradePayloadSchema.d.ts +67 -0
  94. package/dist/wss/FundingPayloadSchema.d.ts +24 -0
  95. package/dist/wss/HoldersPayloadSchema.d.ts +35 -0
  96. package/dist/wss/MarketDetailsPayloadSchema.d.ts +36 -0
  97. package/dist/wss/MarketPayloadSchema.d.ts +53 -0
  98. package/dist/wss/OhlcvPayloadSchema.d.ts +44 -0
  99. package/dist/wss/PairsPayloadSchema.d.ts +30 -0
  100. package/dist/wss/PositionPayloadSchema.d.ts +76 -0
  101. package/dist/wss/TokenDetailsPayloadSchema.d.ts +36 -0
  102. package/dist/wss/aggregated-feed/FeedSchema.d.ts +113 -0
  103. package/dist/wss/pulse/PausePulsePayloadSchema.d.ts +12 -0
  104. package/dist/wss/stream/StreamPayloadSchema.d.ts +83 -0
  105. package/package.json +59 -0
@@ -0,0 +1,2644 @@
1
+ import { z } from 'zod';
2
+ import { type SecurityFlags } from '../../utils/schemas/SecuritySchemas.js';
3
+ declare const WalletTokenTypeValues: readonly ["2020", "2022", "erc20", "trc10", "trc20"];
4
+ export type WalletTokenType = (typeof WalletTokenTypeValues)[number];
5
+ export type CrossChainBalances = Record<string, {
6
+ balance: number;
7
+ balanceRaw: string;
8
+ chainId?: string;
9
+ address?: string;
10
+ }>;
11
+ export type CrossChainBalanceValues = {
12
+ balance: number;
13
+ balanceRaw: string;
14
+ chainId?: string;
15
+ address?: string;
16
+ };
17
+ export type ContractBalanceSecurity = (SecurityFlags & {
18
+ frozen?: boolean;
19
+ }) | null | undefined;
20
+ export type ContractBalance = {
21
+ balance: number;
22
+ balanceRaw: string;
23
+ decimals: number;
24
+ address: string;
25
+ chainId: string;
26
+ tokenType?: WalletTokenType;
27
+ security?: ContractBalanceSecurity;
28
+ };
29
+ export interface FormattedHolding {
30
+ asset: {
31
+ id: number | null;
32
+ name: string;
33
+ symbol: string;
34
+ logo?: string;
35
+ decimals: bigint[];
36
+ contracts: string[];
37
+ blockchains: string[];
38
+ };
39
+ price: number;
40
+ liquidity: number;
41
+ market_cap: number;
42
+ price_change_24h: number;
43
+ token_balance: number;
44
+ estimated_balance: number;
45
+ cross_chain_balances: CrossChainBalances;
46
+ contracts_balances: ContractBalance[];
47
+ allocation: number;
48
+ wallets: string[];
49
+ }
50
+ export type FormattedHoldingWithPNL = FormattedHolding & {
51
+ realized_pnl: number;
52
+ unrealized_pnl: number;
53
+ price_bought: number;
54
+ total_invested: number;
55
+ min_buy_price: number;
56
+ max_buy_price: number;
57
+ };
58
+ export type PortfolioOutput = {
59
+ total_wallet_balance: number;
60
+ wallets: string[];
61
+ total_realized_pnl?: number;
62
+ total_unrealized_pnl?: number;
63
+ total_pnl_history?: {
64
+ '24h': {
65
+ realized: number;
66
+ unrealized: number;
67
+ };
68
+ '7d': {
69
+ realized: number;
70
+ unrealized: number;
71
+ };
72
+ '30d': {
73
+ realized: number;
74
+ unrealized: number;
75
+ };
76
+ '1y': {
77
+ realized: number;
78
+ unrealized: number;
79
+ };
80
+ };
81
+ assets: FormattedHoldingWithPNL[] | FormattedHolding[];
82
+ };
83
+ export declare const PortfolioResponseSchema: z.ZodObject<{
84
+ data: z.ZodObject<{
85
+ total_wallet_balance: z.ZodNumber;
86
+ wallets: z.ZodArray<z.ZodString, "many">;
87
+ assets: z.ZodArray<z.ZodObject<{
88
+ contracts_balances: z.ZodArray<z.ZodObject<{
89
+ address: z.ZodString;
90
+ balance: z.ZodNumber;
91
+ balanceRaw: z.ZodString;
92
+ chainId: z.ZodString;
93
+ decimals: z.ZodNumber;
94
+ tokenType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["2020", "2022", "erc20", "trc10", "trc20"]>>>;
95
+ security: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
96
+ buyTax: z.ZodOptional<z.ZodString>;
97
+ sellTax: z.ZodOptional<z.ZodString>;
98
+ transferPausable: z.ZodOptional<z.ZodBoolean>;
99
+ top10Holders: z.ZodOptional<z.ZodString>;
100
+ isBlacklisted: z.ZodOptional<z.ZodBoolean>;
101
+ noMintAuthority: z.ZodOptional<z.ZodBoolean>;
102
+ balanceMutable: z.ZodOptional<z.ZodBoolean>;
103
+ lowLiquidity: z.ZodOptional<z.ZodString>;
104
+ burnRate: z.ZodOptional<z.ZodString>;
105
+ }, {
106
+ buyTax: z.ZodOptional<z.ZodString>;
107
+ sellTax: z.ZodOptional<z.ZodString>;
108
+ transferPausable: z.ZodOptional<z.ZodBoolean>;
109
+ top10Holders: z.ZodOptional<z.ZodString>;
110
+ isBlacklisted: z.ZodOptional<z.ZodBoolean>;
111
+ isHoneypot: z.ZodOptional<z.ZodBoolean>;
112
+ isNotOpenSource: z.ZodOptional<z.ZodBoolean>;
113
+ renounced: z.ZodOptional<z.ZodBoolean>;
114
+ locked: z.ZodOptional<z.ZodString>;
115
+ isWhitelisted: z.ZodOptional<z.ZodBoolean>;
116
+ balanceMutable: z.ZodOptional<z.ZodBoolean>;
117
+ lowLiquidity: z.ZodOptional<z.ZodString>;
118
+ burnRate: z.ZodOptional<z.ZodString>;
119
+ isMintable: z.ZodOptional<z.ZodBoolean>;
120
+ modifyableTax: z.ZodOptional<z.ZodBoolean>;
121
+ selfDestruct: z.ZodOptional<z.ZodBoolean>;
122
+ }>, {
123
+ frozen: z.ZodOptional<z.ZodBoolean>;
124
+ }>, "strip", z.ZodTypeAny, {
125
+ buyTax?: string | undefined;
126
+ sellTax?: string | undefined;
127
+ transferPausable?: boolean | undefined;
128
+ top10Holders?: string | undefined;
129
+ isBlacklisted?: boolean | undefined;
130
+ isHoneypot?: boolean | undefined;
131
+ isNotOpenSource?: boolean | undefined;
132
+ renounced?: boolean | undefined;
133
+ locked?: string | undefined;
134
+ isWhitelisted?: boolean | undefined;
135
+ balanceMutable?: boolean | undefined;
136
+ lowLiquidity?: string | undefined;
137
+ burnRate?: string | undefined;
138
+ isMintable?: boolean | undefined;
139
+ modifyableTax?: boolean | undefined;
140
+ selfDestruct?: boolean | undefined;
141
+ noMintAuthority?: boolean | undefined;
142
+ frozen?: boolean | undefined;
143
+ }, {
144
+ buyTax?: string | undefined;
145
+ sellTax?: string | undefined;
146
+ transferPausable?: boolean | undefined;
147
+ top10Holders?: string | undefined;
148
+ isBlacklisted?: boolean | undefined;
149
+ isHoneypot?: boolean | undefined;
150
+ isNotOpenSource?: boolean | undefined;
151
+ renounced?: boolean | undefined;
152
+ locked?: string | undefined;
153
+ isWhitelisted?: boolean | undefined;
154
+ balanceMutable?: boolean | undefined;
155
+ lowLiquidity?: string | undefined;
156
+ burnRate?: string | undefined;
157
+ isMintable?: boolean | undefined;
158
+ modifyableTax?: boolean | undefined;
159
+ selfDestruct?: boolean | undefined;
160
+ noMintAuthority?: boolean | undefined;
161
+ frozen?: boolean | undefined;
162
+ }>>>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ address: string;
165
+ balanceRaw: string;
166
+ balance: number;
167
+ chainId: string;
168
+ decimals: number;
169
+ security?: {
170
+ buyTax?: string | undefined;
171
+ sellTax?: string | undefined;
172
+ transferPausable?: boolean | undefined;
173
+ top10Holders?: string | undefined;
174
+ isBlacklisted?: boolean | undefined;
175
+ isHoneypot?: boolean | undefined;
176
+ isNotOpenSource?: boolean | undefined;
177
+ renounced?: boolean | undefined;
178
+ locked?: string | undefined;
179
+ isWhitelisted?: boolean | undefined;
180
+ balanceMutable?: boolean | undefined;
181
+ lowLiquidity?: string | undefined;
182
+ burnRate?: string | undefined;
183
+ isMintable?: boolean | undefined;
184
+ modifyableTax?: boolean | undefined;
185
+ selfDestruct?: boolean | undefined;
186
+ noMintAuthority?: boolean | undefined;
187
+ frozen?: boolean | undefined;
188
+ } | null | undefined;
189
+ tokenType?: "2020" | "2022" | "erc20" | "trc10" | "trc20" | null | undefined;
190
+ }, {
191
+ address: string;
192
+ balanceRaw: string;
193
+ balance: number;
194
+ chainId: string;
195
+ decimals: number;
196
+ security?: {
197
+ buyTax?: string | undefined;
198
+ sellTax?: string | undefined;
199
+ transferPausable?: boolean | undefined;
200
+ top10Holders?: string | undefined;
201
+ isBlacklisted?: boolean | undefined;
202
+ isHoneypot?: boolean | undefined;
203
+ isNotOpenSource?: boolean | undefined;
204
+ renounced?: boolean | undefined;
205
+ locked?: string | undefined;
206
+ isWhitelisted?: boolean | undefined;
207
+ balanceMutable?: boolean | undefined;
208
+ lowLiquidity?: string | undefined;
209
+ burnRate?: string | undefined;
210
+ isMintable?: boolean | undefined;
211
+ modifyableTax?: boolean | undefined;
212
+ selfDestruct?: boolean | undefined;
213
+ noMintAuthority?: boolean | undefined;
214
+ frozen?: boolean | undefined;
215
+ } | null | undefined;
216
+ tokenType?: "2020" | "2022" | "erc20" | "trc10" | "trc20" | null | undefined;
217
+ }>, "many">;
218
+ cross_chain_balances: z.ZodRecord<z.ZodString, z.ZodObject<{
219
+ balance: z.ZodNumber;
220
+ balanceRaw: z.ZodString;
221
+ chainId: z.ZodString;
222
+ address: z.ZodString;
223
+ }, "strip", z.ZodTypeAny, {
224
+ address: string;
225
+ balanceRaw: string;
226
+ balance: number;
227
+ chainId: string;
228
+ }, {
229
+ address: string;
230
+ balanceRaw: string;
231
+ balance: number;
232
+ chainId: string;
233
+ }>>;
234
+ price_change_24h: z.ZodNumber;
235
+ estimated_balance: z.ZodNumber;
236
+ price: z.ZodNumber;
237
+ token_balance: z.ZodNumber;
238
+ allocation: z.ZodNumber;
239
+ asset: z.ZodObject<{
240
+ id: z.ZodNullable<z.ZodNumber>;
241
+ name: z.ZodString;
242
+ symbol: z.ZodString;
243
+ logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
+ decimals: z.ZodArray<z.ZodBigInt, "many">;
245
+ contracts: z.ZodArray<z.ZodString, "many">;
246
+ blockchains: z.ZodArray<z.ZodString, "many">;
247
+ }, "strip", z.ZodTypeAny, {
248
+ symbol: string;
249
+ name: string;
250
+ decimals: bigint[];
251
+ id: number | null;
252
+ blockchains: string[];
253
+ contracts: string[];
254
+ logo?: string | null | undefined;
255
+ }, {
256
+ symbol: string;
257
+ name: string;
258
+ decimals: bigint[];
259
+ id: number | null;
260
+ blockchains: string[];
261
+ contracts: string[];
262
+ logo?: string | null | undefined;
263
+ }>;
264
+ wallets: z.ZodArray<z.ZodString, "many">;
265
+ realized_pnl: z.ZodOptional<z.ZodNumber>;
266
+ unrealized_pnl: z.ZodOptional<z.ZodNumber>;
267
+ price_bought: z.ZodOptional<z.ZodNumber>;
268
+ total_invested: z.ZodOptional<z.ZodNumber>;
269
+ min_buy_price: z.ZodOptional<z.ZodNumber>;
270
+ max_buy_price: z.ZodOptional<z.ZodNumber>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ price: number;
273
+ price_change_24h: number;
274
+ asset: {
275
+ symbol: string;
276
+ name: string;
277
+ decimals: bigint[];
278
+ id: number | null;
279
+ blockchains: string[];
280
+ contracts: string[];
281
+ logo?: string | null | undefined;
282
+ };
283
+ wallets: string[];
284
+ contracts_balances: {
285
+ address: string;
286
+ balanceRaw: string;
287
+ balance: number;
288
+ chainId: string;
289
+ decimals: number;
290
+ security?: {
291
+ buyTax?: string | undefined;
292
+ sellTax?: string | undefined;
293
+ transferPausable?: boolean | undefined;
294
+ top10Holders?: string | undefined;
295
+ isBlacklisted?: boolean | undefined;
296
+ isHoneypot?: boolean | undefined;
297
+ isNotOpenSource?: boolean | undefined;
298
+ renounced?: boolean | undefined;
299
+ locked?: string | undefined;
300
+ isWhitelisted?: boolean | undefined;
301
+ balanceMutable?: boolean | undefined;
302
+ lowLiquidity?: string | undefined;
303
+ burnRate?: string | undefined;
304
+ isMintable?: boolean | undefined;
305
+ modifyableTax?: boolean | undefined;
306
+ selfDestruct?: boolean | undefined;
307
+ noMintAuthority?: boolean | undefined;
308
+ frozen?: boolean | undefined;
309
+ } | null | undefined;
310
+ tokenType?: "2020" | "2022" | "erc20" | "trc10" | "trc20" | null | undefined;
311
+ }[];
312
+ cross_chain_balances: Record<string, {
313
+ address: string;
314
+ balanceRaw: string;
315
+ balance: number;
316
+ chainId: string;
317
+ }>;
318
+ estimated_balance: number;
319
+ token_balance: number;
320
+ allocation: number;
321
+ realized_pnl?: number | undefined;
322
+ unrealized_pnl?: number | undefined;
323
+ price_bought?: number | undefined;
324
+ total_invested?: number | undefined;
325
+ min_buy_price?: number | undefined;
326
+ max_buy_price?: number | undefined;
327
+ }, {
328
+ price: number;
329
+ price_change_24h: number;
330
+ asset: {
331
+ symbol: string;
332
+ name: string;
333
+ decimals: bigint[];
334
+ id: number | null;
335
+ blockchains: string[];
336
+ contracts: string[];
337
+ logo?: string | null | undefined;
338
+ };
339
+ wallets: string[];
340
+ contracts_balances: {
341
+ address: string;
342
+ balanceRaw: string;
343
+ balance: number;
344
+ chainId: string;
345
+ decimals: number;
346
+ security?: {
347
+ buyTax?: string | undefined;
348
+ sellTax?: string | undefined;
349
+ transferPausable?: boolean | undefined;
350
+ top10Holders?: string | undefined;
351
+ isBlacklisted?: boolean | undefined;
352
+ isHoneypot?: boolean | undefined;
353
+ isNotOpenSource?: boolean | undefined;
354
+ renounced?: boolean | undefined;
355
+ locked?: string | undefined;
356
+ isWhitelisted?: boolean | undefined;
357
+ balanceMutable?: boolean | undefined;
358
+ lowLiquidity?: string | undefined;
359
+ burnRate?: string | undefined;
360
+ isMintable?: boolean | undefined;
361
+ modifyableTax?: boolean | undefined;
362
+ selfDestruct?: boolean | undefined;
363
+ noMintAuthority?: boolean | undefined;
364
+ frozen?: boolean | undefined;
365
+ } | null | undefined;
366
+ tokenType?: "2020" | "2022" | "erc20" | "trc10" | "trc20" | null | undefined;
367
+ }[];
368
+ cross_chain_balances: Record<string, {
369
+ address: string;
370
+ balanceRaw: string;
371
+ balance: number;
372
+ chainId: string;
373
+ }>;
374
+ estimated_balance: number;
375
+ token_balance: number;
376
+ allocation: number;
377
+ realized_pnl?: number | undefined;
378
+ unrealized_pnl?: number | undefined;
379
+ price_bought?: number | undefined;
380
+ total_invested?: number | undefined;
381
+ min_buy_price?: number | undefined;
382
+ max_buy_price?: number | undefined;
383
+ }>, "many">;
384
+ win_rate: z.ZodOptional<z.ZodNumber>;
385
+ tokens_distribution: z.ZodOptional<z.ZodObject<{
386
+ '10x+': z.ZodNumber;
387
+ '4x - 10x': z.ZodNumber;
388
+ '2x - 4x': z.ZodNumber;
389
+ '10% - 2x': z.ZodNumber;
390
+ '-10% - 10%': z.ZodNumber;
391
+ '-50% - -10%': z.ZodNumber;
392
+ '-100% - -50%': z.ZodNumber;
393
+ }, "strip", z.ZodTypeAny, {
394
+ '10x+': number;
395
+ '4x - 10x': number;
396
+ '2x - 4x': number;
397
+ '10% - 2x': number;
398
+ '-10% - 10%': number;
399
+ '-50% - -10%': number;
400
+ '-100% - -50%': number;
401
+ }, {
402
+ '10x+': number;
403
+ '4x - 10x': number;
404
+ '2x - 4x': number;
405
+ '10% - 2x': number;
406
+ '-10% - 10%': number;
407
+ '-50% - -10%': number;
408
+ '-100% - -50%': number;
409
+ }>>;
410
+ pnl_history: z.ZodOptional<z.ZodObject<{
411
+ '1y': z.ZodArray<z.ZodTuple<[z.ZodDate, z.ZodObject<{
412
+ realized: z.ZodNumber;
413
+ unrealized: z.ZodNumber;
414
+ }, "strip", z.ZodTypeAny, {
415
+ realized: number;
416
+ unrealized: number;
417
+ }, {
418
+ realized: number;
419
+ unrealized: number;
420
+ }>], null>, "many">;
421
+ '7d': z.ZodArray<z.ZodTuple<[z.ZodDate, z.ZodObject<{
422
+ realized: z.ZodNumber;
423
+ unrealized: z.ZodNumber;
424
+ }, "strip", z.ZodTypeAny, {
425
+ realized: number;
426
+ unrealized: number;
427
+ }, {
428
+ realized: number;
429
+ unrealized: number;
430
+ }>], null>, "many">;
431
+ '24h': z.ZodArray<z.ZodTuple<[z.ZodDate, z.ZodObject<{
432
+ realized: z.ZodNumber;
433
+ unrealized: z.ZodNumber;
434
+ }, "strip", z.ZodTypeAny, {
435
+ realized: number;
436
+ unrealized: number;
437
+ }, {
438
+ realized: number;
439
+ unrealized: number;
440
+ }>], null>, "many">;
441
+ '30d': z.ZodArray<z.ZodTuple<[z.ZodDate, z.ZodObject<{
442
+ realized: z.ZodNumber;
443
+ unrealized: z.ZodNumber;
444
+ }, "strip", z.ZodTypeAny, {
445
+ realized: number;
446
+ unrealized: number;
447
+ }, {
448
+ realized: number;
449
+ unrealized: number;
450
+ }>], null>, "many">;
451
+ }, "strip", z.ZodTypeAny, {
452
+ '24h': [Date, {
453
+ realized: number;
454
+ unrealized: number;
455
+ }][];
456
+ '1y': [Date, {
457
+ realized: number;
458
+ unrealized: number;
459
+ }][];
460
+ '7d': [Date, {
461
+ realized: number;
462
+ unrealized: number;
463
+ }][];
464
+ '30d': [Date, {
465
+ realized: number;
466
+ unrealized: number;
467
+ }][];
468
+ }, {
469
+ '24h': [Date, {
470
+ realized: number;
471
+ unrealized: number;
472
+ }][];
473
+ '1y': [Date, {
474
+ realized: number;
475
+ unrealized: number;
476
+ }][];
477
+ '7d': [Date, {
478
+ realized: number;
479
+ unrealized: number;
480
+ }][];
481
+ '30d': [Date, {
482
+ realized: number;
483
+ unrealized: number;
484
+ }][];
485
+ }>>;
486
+ total_realized_pnl: z.ZodOptional<z.ZodNumber>;
487
+ total_unrealized_pnl: z.ZodOptional<z.ZodNumber>;
488
+ total_pnl_history: z.ZodOptional<z.ZodObject<{
489
+ '24h': z.ZodObject<{
490
+ realized: z.ZodNumber;
491
+ unrealized: z.ZodNumber;
492
+ }, "strip", z.ZodTypeAny, {
493
+ realized: number;
494
+ unrealized: number;
495
+ }, {
496
+ realized: number;
497
+ unrealized: number;
498
+ }>;
499
+ '7d': z.ZodObject<{
500
+ realized: z.ZodNumber;
501
+ unrealized: z.ZodNumber;
502
+ }, "strip", z.ZodTypeAny, {
503
+ realized: number;
504
+ unrealized: number;
505
+ }, {
506
+ realized: number;
507
+ unrealized: number;
508
+ }>;
509
+ '30d': z.ZodObject<{
510
+ realized: z.ZodNumber;
511
+ unrealized: z.ZodNumber;
512
+ }, "strip", z.ZodTypeAny, {
513
+ realized: number;
514
+ unrealized: number;
515
+ }, {
516
+ realized: number;
517
+ unrealized: number;
518
+ }>;
519
+ '1y': z.ZodObject<{
520
+ realized: z.ZodNumber;
521
+ unrealized: z.ZodNumber;
522
+ }, "strip", z.ZodTypeAny, {
523
+ realized: number;
524
+ unrealized: number;
525
+ }, {
526
+ realized: number;
527
+ unrealized: number;
528
+ }>;
529
+ }, "strip", z.ZodTypeAny, {
530
+ '24h': {
531
+ realized: number;
532
+ unrealized: number;
533
+ };
534
+ '1y': {
535
+ realized: number;
536
+ unrealized: number;
537
+ };
538
+ '7d': {
539
+ realized: number;
540
+ unrealized: number;
541
+ };
542
+ '30d': {
543
+ realized: number;
544
+ unrealized: number;
545
+ };
546
+ }, {
547
+ '24h': {
548
+ realized: number;
549
+ unrealized: number;
550
+ };
551
+ '1y': {
552
+ realized: number;
553
+ unrealized: number;
554
+ };
555
+ '7d': {
556
+ realized: number;
557
+ unrealized: number;
558
+ };
559
+ '30d': {
560
+ realized: number;
561
+ unrealized: number;
562
+ };
563
+ }>>;
564
+ balances_length: z.ZodNumber;
565
+ }, "strip", z.ZodTypeAny, {
566
+ assets: {
567
+ price: number;
568
+ price_change_24h: number;
569
+ asset: {
570
+ symbol: string;
571
+ name: string;
572
+ decimals: bigint[];
573
+ id: number | null;
574
+ blockchains: string[];
575
+ contracts: string[];
576
+ logo?: string | null | undefined;
577
+ };
578
+ wallets: string[];
579
+ contracts_balances: {
580
+ address: string;
581
+ balanceRaw: string;
582
+ balance: number;
583
+ chainId: string;
584
+ decimals: number;
585
+ security?: {
586
+ buyTax?: string | undefined;
587
+ sellTax?: string | undefined;
588
+ transferPausable?: boolean | undefined;
589
+ top10Holders?: string | undefined;
590
+ isBlacklisted?: boolean | undefined;
591
+ isHoneypot?: boolean | undefined;
592
+ isNotOpenSource?: boolean | undefined;
593
+ renounced?: boolean | undefined;
594
+ locked?: string | undefined;
595
+ isWhitelisted?: boolean | undefined;
596
+ balanceMutable?: boolean | undefined;
597
+ lowLiquidity?: string | undefined;
598
+ burnRate?: string | undefined;
599
+ isMintable?: boolean | undefined;
600
+ modifyableTax?: boolean | undefined;
601
+ selfDestruct?: boolean | undefined;
602
+ noMintAuthority?: boolean | undefined;
603
+ frozen?: boolean | undefined;
604
+ } | null | undefined;
605
+ tokenType?: "2020" | "2022" | "erc20" | "trc10" | "trc20" | null | undefined;
606
+ }[];
607
+ cross_chain_balances: Record<string, {
608
+ address: string;
609
+ balanceRaw: string;
610
+ balance: number;
611
+ chainId: string;
612
+ }>;
613
+ estimated_balance: number;
614
+ token_balance: number;
615
+ allocation: number;
616
+ realized_pnl?: number | undefined;
617
+ unrealized_pnl?: number | undefined;
618
+ price_bought?: number | undefined;
619
+ total_invested?: number | undefined;
620
+ min_buy_price?: number | undefined;
621
+ max_buy_price?: number | undefined;
622
+ }[];
623
+ wallets: string[];
624
+ total_wallet_balance: number;
625
+ balances_length: number;
626
+ win_rate?: number | undefined;
627
+ tokens_distribution?: {
628
+ '10x+': number;
629
+ '4x - 10x': number;
630
+ '2x - 4x': number;
631
+ '10% - 2x': number;
632
+ '-10% - 10%': number;
633
+ '-50% - -10%': number;
634
+ '-100% - -50%': number;
635
+ } | undefined;
636
+ pnl_history?: {
637
+ '24h': [Date, {
638
+ realized: number;
639
+ unrealized: number;
640
+ }][];
641
+ '1y': [Date, {
642
+ realized: number;
643
+ unrealized: number;
644
+ }][];
645
+ '7d': [Date, {
646
+ realized: number;
647
+ unrealized: number;
648
+ }][];
649
+ '30d': [Date, {
650
+ realized: number;
651
+ unrealized: number;
652
+ }][];
653
+ } | undefined;
654
+ total_realized_pnl?: number | undefined;
655
+ total_unrealized_pnl?: number | undefined;
656
+ total_pnl_history?: {
657
+ '24h': {
658
+ realized: number;
659
+ unrealized: number;
660
+ };
661
+ '1y': {
662
+ realized: number;
663
+ unrealized: number;
664
+ };
665
+ '7d': {
666
+ realized: number;
667
+ unrealized: number;
668
+ };
669
+ '30d': {
670
+ realized: number;
671
+ unrealized: number;
672
+ };
673
+ } | undefined;
674
+ }, {
675
+ assets: {
676
+ price: number;
677
+ price_change_24h: number;
678
+ asset: {
679
+ symbol: string;
680
+ name: string;
681
+ decimals: bigint[];
682
+ id: number | null;
683
+ blockchains: string[];
684
+ contracts: string[];
685
+ logo?: string | null | undefined;
686
+ };
687
+ wallets: string[];
688
+ contracts_balances: {
689
+ address: string;
690
+ balanceRaw: string;
691
+ balance: number;
692
+ chainId: string;
693
+ decimals: number;
694
+ security?: {
695
+ buyTax?: string | undefined;
696
+ sellTax?: string | undefined;
697
+ transferPausable?: boolean | undefined;
698
+ top10Holders?: string | undefined;
699
+ isBlacklisted?: boolean | undefined;
700
+ isHoneypot?: boolean | undefined;
701
+ isNotOpenSource?: boolean | undefined;
702
+ renounced?: boolean | undefined;
703
+ locked?: string | undefined;
704
+ isWhitelisted?: boolean | undefined;
705
+ balanceMutable?: boolean | undefined;
706
+ lowLiquidity?: string | undefined;
707
+ burnRate?: string | undefined;
708
+ isMintable?: boolean | undefined;
709
+ modifyableTax?: boolean | undefined;
710
+ selfDestruct?: boolean | undefined;
711
+ noMintAuthority?: boolean | undefined;
712
+ frozen?: boolean | undefined;
713
+ } | null | undefined;
714
+ tokenType?: "2020" | "2022" | "erc20" | "trc10" | "trc20" | null | undefined;
715
+ }[];
716
+ cross_chain_balances: Record<string, {
717
+ address: string;
718
+ balanceRaw: string;
719
+ balance: number;
720
+ chainId: string;
721
+ }>;
722
+ estimated_balance: number;
723
+ token_balance: number;
724
+ allocation: number;
725
+ realized_pnl?: number | undefined;
726
+ unrealized_pnl?: number | undefined;
727
+ price_bought?: number | undefined;
728
+ total_invested?: number | undefined;
729
+ min_buy_price?: number | undefined;
730
+ max_buy_price?: number | undefined;
731
+ }[];
732
+ wallets: string[];
733
+ total_wallet_balance: number;
734
+ balances_length: number;
735
+ win_rate?: number | undefined;
736
+ tokens_distribution?: {
737
+ '10x+': number;
738
+ '4x - 10x': number;
739
+ '2x - 4x': number;
740
+ '10% - 2x': number;
741
+ '-10% - 10%': number;
742
+ '-50% - -10%': number;
743
+ '-100% - -50%': number;
744
+ } | undefined;
745
+ pnl_history?: {
746
+ '24h': [Date, {
747
+ realized: number;
748
+ unrealized: number;
749
+ }][];
750
+ '1y': [Date, {
751
+ realized: number;
752
+ unrealized: number;
753
+ }][];
754
+ '7d': [Date, {
755
+ realized: number;
756
+ unrealized: number;
757
+ }][];
758
+ '30d': [Date, {
759
+ realized: number;
760
+ unrealized: number;
761
+ }][];
762
+ } | undefined;
763
+ total_realized_pnl?: number | undefined;
764
+ total_unrealized_pnl?: number | undefined;
765
+ total_pnl_history?: {
766
+ '24h': {
767
+ realized: number;
768
+ unrealized: number;
769
+ };
770
+ '1y': {
771
+ realized: number;
772
+ unrealized: number;
773
+ };
774
+ '7d': {
775
+ realized: number;
776
+ unrealized: number;
777
+ };
778
+ '30d': {
779
+ realized: number;
780
+ unrealized: number;
781
+ };
782
+ } | undefined;
783
+ }>;
784
+ backfill_status: z.ZodOptional<z.ZodEnum<["processed", "processing", "pending"]>>;
785
+ }, "strip", z.ZodTypeAny, {
786
+ data: {
787
+ assets: {
788
+ price: number;
789
+ price_change_24h: number;
790
+ asset: {
791
+ symbol: string;
792
+ name: string;
793
+ decimals: bigint[];
794
+ id: number | null;
795
+ blockchains: string[];
796
+ contracts: string[];
797
+ logo?: string | null | undefined;
798
+ };
799
+ wallets: string[];
800
+ contracts_balances: {
801
+ address: string;
802
+ balanceRaw: string;
803
+ balance: number;
804
+ chainId: string;
805
+ decimals: number;
806
+ security?: {
807
+ buyTax?: string | undefined;
808
+ sellTax?: string | undefined;
809
+ transferPausable?: boolean | undefined;
810
+ top10Holders?: string | undefined;
811
+ isBlacklisted?: boolean | undefined;
812
+ isHoneypot?: boolean | undefined;
813
+ isNotOpenSource?: boolean | undefined;
814
+ renounced?: boolean | undefined;
815
+ locked?: string | undefined;
816
+ isWhitelisted?: boolean | undefined;
817
+ balanceMutable?: boolean | undefined;
818
+ lowLiquidity?: string | undefined;
819
+ burnRate?: string | undefined;
820
+ isMintable?: boolean | undefined;
821
+ modifyableTax?: boolean | undefined;
822
+ selfDestruct?: boolean | undefined;
823
+ noMintAuthority?: boolean | undefined;
824
+ frozen?: boolean | undefined;
825
+ } | null | undefined;
826
+ tokenType?: "2020" | "2022" | "erc20" | "trc10" | "trc20" | null | undefined;
827
+ }[];
828
+ cross_chain_balances: Record<string, {
829
+ address: string;
830
+ balanceRaw: string;
831
+ balance: number;
832
+ chainId: string;
833
+ }>;
834
+ estimated_balance: number;
835
+ token_balance: number;
836
+ allocation: number;
837
+ realized_pnl?: number | undefined;
838
+ unrealized_pnl?: number | undefined;
839
+ price_bought?: number | undefined;
840
+ total_invested?: number | undefined;
841
+ min_buy_price?: number | undefined;
842
+ max_buy_price?: number | undefined;
843
+ }[];
844
+ wallets: string[];
845
+ total_wallet_balance: number;
846
+ balances_length: number;
847
+ win_rate?: number | undefined;
848
+ tokens_distribution?: {
849
+ '10x+': number;
850
+ '4x - 10x': number;
851
+ '2x - 4x': number;
852
+ '10% - 2x': number;
853
+ '-10% - 10%': number;
854
+ '-50% - -10%': number;
855
+ '-100% - -50%': number;
856
+ } | undefined;
857
+ pnl_history?: {
858
+ '24h': [Date, {
859
+ realized: number;
860
+ unrealized: number;
861
+ }][];
862
+ '1y': [Date, {
863
+ realized: number;
864
+ unrealized: number;
865
+ }][];
866
+ '7d': [Date, {
867
+ realized: number;
868
+ unrealized: number;
869
+ }][];
870
+ '30d': [Date, {
871
+ realized: number;
872
+ unrealized: number;
873
+ }][];
874
+ } | undefined;
875
+ total_realized_pnl?: number | undefined;
876
+ total_unrealized_pnl?: number | undefined;
877
+ total_pnl_history?: {
878
+ '24h': {
879
+ realized: number;
880
+ unrealized: number;
881
+ };
882
+ '1y': {
883
+ realized: number;
884
+ unrealized: number;
885
+ };
886
+ '7d': {
887
+ realized: number;
888
+ unrealized: number;
889
+ };
890
+ '30d': {
891
+ realized: number;
892
+ unrealized: number;
893
+ };
894
+ } | undefined;
895
+ };
896
+ backfill_status?: "processed" | "processing" | "pending" | undefined;
897
+ }, {
898
+ data: {
899
+ assets: {
900
+ price: number;
901
+ price_change_24h: number;
902
+ asset: {
903
+ symbol: string;
904
+ name: string;
905
+ decimals: bigint[];
906
+ id: number | null;
907
+ blockchains: string[];
908
+ contracts: string[];
909
+ logo?: string | null | undefined;
910
+ };
911
+ wallets: string[];
912
+ contracts_balances: {
913
+ address: string;
914
+ balanceRaw: string;
915
+ balance: number;
916
+ chainId: string;
917
+ decimals: number;
918
+ security?: {
919
+ buyTax?: string | undefined;
920
+ sellTax?: string | undefined;
921
+ transferPausable?: boolean | undefined;
922
+ top10Holders?: string | undefined;
923
+ isBlacklisted?: boolean | undefined;
924
+ isHoneypot?: boolean | undefined;
925
+ isNotOpenSource?: boolean | undefined;
926
+ renounced?: boolean | undefined;
927
+ locked?: string | undefined;
928
+ isWhitelisted?: boolean | undefined;
929
+ balanceMutable?: boolean | undefined;
930
+ lowLiquidity?: string | undefined;
931
+ burnRate?: string | undefined;
932
+ isMintable?: boolean | undefined;
933
+ modifyableTax?: boolean | undefined;
934
+ selfDestruct?: boolean | undefined;
935
+ noMintAuthority?: boolean | undefined;
936
+ frozen?: boolean | undefined;
937
+ } | null | undefined;
938
+ tokenType?: "2020" | "2022" | "erc20" | "trc10" | "trc20" | null | undefined;
939
+ }[];
940
+ cross_chain_balances: Record<string, {
941
+ address: string;
942
+ balanceRaw: string;
943
+ balance: number;
944
+ chainId: string;
945
+ }>;
946
+ estimated_balance: number;
947
+ token_balance: number;
948
+ allocation: number;
949
+ realized_pnl?: number | undefined;
950
+ unrealized_pnl?: number | undefined;
951
+ price_bought?: number | undefined;
952
+ total_invested?: number | undefined;
953
+ min_buy_price?: number | undefined;
954
+ max_buy_price?: number | undefined;
955
+ }[];
956
+ wallets: string[];
957
+ total_wallet_balance: number;
958
+ balances_length: number;
959
+ win_rate?: number | undefined;
960
+ tokens_distribution?: {
961
+ '10x+': number;
962
+ '4x - 10x': number;
963
+ '2x - 4x': number;
964
+ '10% - 2x': number;
965
+ '-10% - 10%': number;
966
+ '-50% - -10%': number;
967
+ '-100% - -50%': number;
968
+ } | undefined;
969
+ pnl_history?: {
970
+ '24h': [Date, {
971
+ realized: number;
972
+ unrealized: number;
973
+ }][];
974
+ '1y': [Date, {
975
+ realized: number;
976
+ unrealized: number;
977
+ }][];
978
+ '7d': [Date, {
979
+ realized: number;
980
+ unrealized: number;
981
+ }][];
982
+ '30d': [Date, {
983
+ realized: number;
984
+ unrealized: number;
985
+ }][];
986
+ } | undefined;
987
+ total_realized_pnl?: number | undefined;
988
+ total_unrealized_pnl?: number | undefined;
989
+ total_pnl_history?: {
990
+ '24h': {
991
+ realized: number;
992
+ unrealized: number;
993
+ };
994
+ '1y': {
995
+ realized: number;
996
+ unrealized: number;
997
+ };
998
+ '7d': {
999
+ realized: number;
1000
+ unrealized: number;
1001
+ };
1002
+ '30d': {
1003
+ realized: number;
1004
+ unrealized: number;
1005
+ };
1006
+ } | undefined;
1007
+ };
1008
+ backfill_status?: "processed" | "processing" | "pending" | undefined;
1009
+ }>;
1010
+ export type PortfolioResponse = z.infer<typeof PortfolioResponseSchema>;
1011
+ export declare const MultiPortfolioResponseSchema: z.ZodObject<{
1012
+ data: z.ZodArray<z.ZodObject<{
1013
+ total_wallet_balance: z.ZodNumber;
1014
+ wallets: z.ZodArray<z.ZodString, "many">;
1015
+ assets: z.ZodArray<z.ZodObject<{
1016
+ contracts_balances: z.ZodArray<z.ZodObject<{
1017
+ address: z.ZodString;
1018
+ balance: z.ZodNumber;
1019
+ balanceRaw: z.ZodString;
1020
+ chainId: z.ZodString;
1021
+ decimals: z.ZodNumber;
1022
+ tokenType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["2020", "2022", "erc20", "trc10", "trc20"]>>>;
1023
+ security: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1024
+ buyTax: z.ZodOptional<z.ZodString>;
1025
+ sellTax: z.ZodOptional<z.ZodString>;
1026
+ transferPausable: z.ZodOptional<z.ZodBoolean>;
1027
+ top10Holders: z.ZodOptional<z.ZodString>;
1028
+ isBlacklisted: z.ZodOptional<z.ZodBoolean>;
1029
+ noMintAuthority: z.ZodOptional<z.ZodBoolean>;
1030
+ balanceMutable: z.ZodOptional<z.ZodBoolean>;
1031
+ lowLiquidity: z.ZodOptional<z.ZodString>;
1032
+ burnRate: z.ZodOptional<z.ZodString>;
1033
+ }, {
1034
+ buyTax: z.ZodOptional<z.ZodString>;
1035
+ sellTax: z.ZodOptional<z.ZodString>;
1036
+ transferPausable: z.ZodOptional<z.ZodBoolean>;
1037
+ top10Holders: z.ZodOptional<z.ZodString>;
1038
+ isBlacklisted: z.ZodOptional<z.ZodBoolean>;
1039
+ isHoneypot: z.ZodOptional<z.ZodBoolean>;
1040
+ isNotOpenSource: z.ZodOptional<z.ZodBoolean>;
1041
+ renounced: z.ZodOptional<z.ZodBoolean>;
1042
+ locked: z.ZodOptional<z.ZodString>;
1043
+ isWhitelisted: z.ZodOptional<z.ZodBoolean>;
1044
+ balanceMutable: z.ZodOptional<z.ZodBoolean>;
1045
+ lowLiquidity: z.ZodOptional<z.ZodString>;
1046
+ burnRate: z.ZodOptional<z.ZodString>;
1047
+ isMintable: z.ZodOptional<z.ZodBoolean>;
1048
+ modifyableTax: z.ZodOptional<z.ZodBoolean>;
1049
+ selfDestruct: z.ZodOptional<z.ZodBoolean>;
1050
+ }>, {
1051
+ frozen: z.ZodOptional<z.ZodBoolean>;
1052
+ }>, "strip", z.ZodTypeAny, {
1053
+ buyTax?: string | undefined;
1054
+ sellTax?: string | undefined;
1055
+ transferPausable?: boolean | undefined;
1056
+ top10Holders?: string | undefined;
1057
+ isBlacklisted?: boolean | undefined;
1058
+ isHoneypot?: boolean | undefined;
1059
+ isNotOpenSource?: boolean | undefined;
1060
+ renounced?: boolean | undefined;
1061
+ locked?: string | undefined;
1062
+ isWhitelisted?: boolean | undefined;
1063
+ balanceMutable?: boolean | undefined;
1064
+ lowLiquidity?: string | undefined;
1065
+ burnRate?: string | undefined;
1066
+ isMintable?: boolean | undefined;
1067
+ modifyableTax?: boolean | undefined;
1068
+ selfDestruct?: boolean | undefined;
1069
+ noMintAuthority?: boolean | undefined;
1070
+ frozen?: boolean | undefined;
1071
+ }, {
1072
+ buyTax?: string | undefined;
1073
+ sellTax?: string | undefined;
1074
+ transferPausable?: boolean | undefined;
1075
+ top10Holders?: string | undefined;
1076
+ isBlacklisted?: boolean | undefined;
1077
+ isHoneypot?: boolean | undefined;
1078
+ isNotOpenSource?: boolean | undefined;
1079
+ renounced?: boolean | undefined;
1080
+ locked?: string | undefined;
1081
+ isWhitelisted?: boolean | undefined;
1082
+ balanceMutable?: boolean | undefined;
1083
+ lowLiquidity?: string | undefined;
1084
+ burnRate?: string | undefined;
1085
+ isMintable?: boolean | undefined;
1086
+ modifyableTax?: boolean | undefined;
1087
+ selfDestruct?: boolean | undefined;
1088
+ noMintAuthority?: boolean | undefined;
1089
+ frozen?: boolean | undefined;
1090
+ }>>>;
1091
+ }, "strip", z.ZodTypeAny, {
1092
+ address: string;
1093
+ balanceRaw: string;
1094
+ balance: number;
1095
+ chainId: string;
1096
+ decimals: number;
1097
+ security?: {
1098
+ buyTax?: string | undefined;
1099
+ sellTax?: string | undefined;
1100
+ transferPausable?: boolean | undefined;
1101
+ top10Holders?: string | undefined;
1102
+ isBlacklisted?: boolean | undefined;
1103
+ isHoneypot?: boolean | undefined;
1104
+ isNotOpenSource?: boolean | undefined;
1105
+ renounced?: boolean | undefined;
1106
+ locked?: string | undefined;
1107
+ isWhitelisted?: boolean | undefined;
1108
+ balanceMutable?: boolean | undefined;
1109
+ lowLiquidity?: string | undefined;
1110
+ burnRate?: string | undefined;
1111
+ isMintable?: boolean | undefined;
1112
+ modifyableTax?: boolean | undefined;
1113
+ selfDestruct?: boolean | undefined;
1114
+ noMintAuthority?: boolean | undefined;
1115
+ frozen?: boolean | undefined;
1116
+ } | null | undefined;
1117
+ tokenType?: "2020" | "2022" | "erc20" | "trc10" | "trc20" | null | undefined;
1118
+ }, {
1119
+ address: string;
1120
+ balanceRaw: string;
1121
+ balance: number;
1122
+ chainId: string;
1123
+ decimals: number;
1124
+ security?: {
1125
+ buyTax?: string | undefined;
1126
+ sellTax?: string | undefined;
1127
+ transferPausable?: boolean | undefined;
1128
+ top10Holders?: string | undefined;
1129
+ isBlacklisted?: boolean | undefined;
1130
+ isHoneypot?: boolean | undefined;
1131
+ isNotOpenSource?: boolean | undefined;
1132
+ renounced?: boolean | undefined;
1133
+ locked?: string | undefined;
1134
+ isWhitelisted?: boolean | undefined;
1135
+ balanceMutable?: boolean | undefined;
1136
+ lowLiquidity?: string | undefined;
1137
+ burnRate?: string | undefined;
1138
+ isMintable?: boolean | undefined;
1139
+ modifyableTax?: boolean | undefined;
1140
+ selfDestruct?: boolean | undefined;
1141
+ noMintAuthority?: boolean | undefined;
1142
+ frozen?: boolean | undefined;
1143
+ } | null | undefined;
1144
+ tokenType?: "2020" | "2022" | "erc20" | "trc10" | "trc20" | null | undefined;
1145
+ }>, "many">;
1146
+ cross_chain_balances: z.ZodRecord<z.ZodString, z.ZodObject<{
1147
+ balance: z.ZodNumber;
1148
+ balanceRaw: z.ZodString;
1149
+ chainId: z.ZodString;
1150
+ address: z.ZodString;
1151
+ }, "strip", z.ZodTypeAny, {
1152
+ address: string;
1153
+ balanceRaw: string;
1154
+ balance: number;
1155
+ chainId: string;
1156
+ }, {
1157
+ address: string;
1158
+ balanceRaw: string;
1159
+ balance: number;
1160
+ chainId: string;
1161
+ }>>;
1162
+ price_change_24h: z.ZodNumber;
1163
+ estimated_balance: z.ZodNumber;
1164
+ price: z.ZodNumber;
1165
+ token_balance: z.ZodNumber;
1166
+ allocation: z.ZodNumber;
1167
+ asset: z.ZodObject<{
1168
+ id: z.ZodNullable<z.ZodNumber>;
1169
+ name: z.ZodString;
1170
+ symbol: z.ZodString;
1171
+ logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1172
+ decimals: z.ZodArray<z.ZodBigInt, "many">;
1173
+ contracts: z.ZodArray<z.ZodString, "many">;
1174
+ blockchains: z.ZodArray<z.ZodString, "many">;
1175
+ }, "strip", z.ZodTypeAny, {
1176
+ symbol: string;
1177
+ name: string;
1178
+ decimals: bigint[];
1179
+ id: number | null;
1180
+ blockchains: string[];
1181
+ contracts: string[];
1182
+ logo?: string | null | undefined;
1183
+ }, {
1184
+ symbol: string;
1185
+ name: string;
1186
+ decimals: bigint[];
1187
+ id: number | null;
1188
+ blockchains: string[];
1189
+ contracts: string[];
1190
+ logo?: string | null | undefined;
1191
+ }>;
1192
+ wallets: z.ZodArray<z.ZodString, "many">;
1193
+ realized_pnl: z.ZodOptional<z.ZodNumber>;
1194
+ unrealized_pnl: z.ZodOptional<z.ZodNumber>;
1195
+ price_bought: z.ZodOptional<z.ZodNumber>;
1196
+ total_invested: z.ZodOptional<z.ZodNumber>;
1197
+ min_buy_price: z.ZodOptional<z.ZodNumber>;
1198
+ max_buy_price: z.ZodOptional<z.ZodNumber>;
1199
+ }, "strip", z.ZodTypeAny, {
1200
+ price: number;
1201
+ price_change_24h: number;
1202
+ asset: {
1203
+ symbol: string;
1204
+ name: string;
1205
+ decimals: bigint[];
1206
+ id: number | null;
1207
+ blockchains: string[];
1208
+ contracts: string[];
1209
+ logo?: string | null | undefined;
1210
+ };
1211
+ wallets: string[];
1212
+ contracts_balances: {
1213
+ address: string;
1214
+ balanceRaw: string;
1215
+ balance: number;
1216
+ chainId: string;
1217
+ decimals: number;
1218
+ security?: {
1219
+ buyTax?: string | undefined;
1220
+ sellTax?: string | undefined;
1221
+ transferPausable?: boolean | undefined;
1222
+ top10Holders?: string | undefined;
1223
+ isBlacklisted?: boolean | undefined;
1224
+ isHoneypot?: boolean | undefined;
1225
+ isNotOpenSource?: boolean | undefined;
1226
+ renounced?: boolean | undefined;
1227
+ locked?: string | undefined;
1228
+ isWhitelisted?: boolean | undefined;
1229
+ balanceMutable?: boolean | undefined;
1230
+ lowLiquidity?: string | undefined;
1231
+ burnRate?: string | undefined;
1232
+ isMintable?: boolean | undefined;
1233
+ modifyableTax?: boolean | undefined;
1234
+ selfDestruct?: boolean | undefined;
1235
+ noMintAuthority?: boolean | undefined;
1236
+ frozen?: boolean | undefined;
1237
+ } | null | undefined;
1238
+ tokenType?: "2020" | "2022" | "erc20" | "trc10" | "trc20" | null | undefined;
1239
+ }[];
1240
+ cross_chain_balances: Record<string, {
1241
+ address: string;
1242
+ balanceRaw: string;
1243
+ balance: number;
1244
+ chainId: string;
1245
+ }>;
1246
+ estimated_balance: number;
1247
+ token_balance: number;
1248
+ allocation: number;
1249
+ realized_pnl?: number | undefined;
1250
+ unrealized_pnl?: number | undefined;
1251
+ price_bought?: number | undefined;
1252
+ total_invested?: number | undefined;
1253
+ min_buy_price?: number | undefined;
1254
+ max_buy_price?: number | undefined;
1255
+ }, {
1256
+ price: number;
1257
+ price_change_24h: number;
1258
+ asset: {
1259
+ symbol: string;
1260
+ name: string;
1261
+ decimals: bigint[];
1262
+ id: number | null;
1263
+ blockchains: string[];
1264
+ contracts: string[];
1265
+ logo?: string | null | undefined;
1266
+ };
1267
+ wallets: string[];
1268
+ contracts_balances: {
1269
+ address: string;
1270
+ balanceRaw: string;
1271
+ balance: number;
1272
+ chainId: string;
1273
+ decimals: number;
1274
+ security?: {
1275
+ buyTax?: string | undefined;
1276
+ sellTax?: string | undefined;
1277
+ transferPausable?: boolean | undefined;
1278
+ top10Holders?: string | undefined;
1279
+ isBlacklisted?: boolean | undefined;
1280
+ isHoneypot?: boolean | undefined;
1281
+ isNotOpenSource?: boolean | undefined;
1282
+ renounced?: boolean | undefined;
1283
+ locked?: string | undefined;
1284
+ isWhitelisted?: boolean | undefined;
1285
+ balanceMutable?: boolean | undefined;
1286
+ lowLiquidity?: string | undefined;
1287
+ burnRate?: string | undefined;
1288
+ isMintable?: boolean | undefined;
1289
+ modifyableTax?: boolean | undefined;
1290
+ selfDestruct?: boolean | undefined;
1291
+ noMintAuthority?: boolean | undefined;
1292
+ frozen?: boolean | undefined;
1293
+ } | null | undefined;
1294
+ tokenType?: "2020" | "2022" | "erc20" | "trc10" | "trc20" | null | undefined;
1295
+ }[];
1296
+ cross_chain_balances: Record<string, {
1297
+ address: string;
1298
+ balanceRaw: string;
1299
+ balance: number;
1300
+ chainId: string;
1301
+ }>;
1302
+ estimated_balance: number;
1303
+ token_balance: number;
1304
+ allocation: number;
1305
+ realized_pnl?: number | undefined;
1306
+ unrealized_pnl?: number | undefined;
1307
+ price_bought?: number | undefined;
1308
+ total_invested?: number | undefined;
1309
+ min_buy_price?: number | undefined;
1310
+ max_buy_price?: number | undefined;
1311
+ }>, "many">;
1312
+ win_rate: z.ZodOptional<z.ZodNumber>;
1313
+ tokens_distribution: z.ZodOptional<z.ZodObject<{
1314
+ '10x+': z.ZodNumber;
1315
+ '4x - 10x': z.ZodNumber;
1316
+ '2x - 4x': z.ZodNumber;
1317
+ '10% - 2x': z.ZodNumber;
1318
+ '-10% - 10%': z.ZodNumber;
1319
+ '-50% - -10%': z.ZodNumber;
1320
+ '-100% - -50%': z.ZodNumber;
1321
+ }, "strip", z.ZodTypeAny, {
1322
+ '10x+': number;
1323
+ '4x - 10x': number;
1324
+ '2x - 4x': number;
1325
+ '10% - 2x': number;
1326
+ '-10% - 10%': number;
1327
+ '-50% - -10%': number;
1328
+ '-100% - -50%': number;
1329
+ }, {
1330
+ '10x+': number;
1331
+ '4x - 10x': number;
1332
+ '2x - 4x': number;
1333
+ '10% - 2x': number;
1334
+ '-10% - 10%': number;
1335
+ '-50% - -10%': number;
1336
+ '-100% - -50%': number;
1337
+ }>>;
1338
+ pnl_history: z.ZodOptional<z.ZodObject<{
1339
+ '1y': z.ZodArray<z.ZodTuple<[z.ZodDate, z.ZodObject<{
1340
+ realized: z.ZodNumber;
1341
+ unrealized: z.ZodNumber;
1342
+ }, "strip", z.ZodTypeAny, {
1343
+ realized: number;
1344
+ unrealized: number;
1345
+ }, {
1346
+ realized: number;
1347
+ unrealized: number;
1348
+ }>], null>, "many">;
1349
+ '7d': z.ZodArray<z.ZodTuple<[z.ZodDate, z.ZodObject<{
1350
+ realized: z.ZodNumber;
1351
+ unrealized: z.ZodNumber;
1352
+ }, "strip", z.ZodTypeAny, {
1353
+ realized: number;
1354
+ unrealized: number;
1355
+ }, {
1356
+ realized: number;
1357
+ unrealized: number;
1358
+ }>], null>, "many">;
1359
+ '24h': z.ZodArray<z.ZodTuple<[z.ZodDate, z.ZodObject<{
1360
+ realized: z.ZodNumber;
1361
+ unrealized: z.ZodNumber;
1362
+ }, "strip", z.ZodTypeAny, {
1363
+ realized: number;
1364
+ unrealized: number;
1365
+ }, {
1366
+ realized: number;
1367
+ unrealized: number;
1368
+ }>], null>, "many">;
1369
+ '30d': z.ZodArray<z.ZodTuple<[z.ZodDate, z.ZodObject<{
1370
+ realized: z.ZodNumber;
1371
+ unrealized: z.ZodNumber;
1372
+ }, "strip", z.ZodTypeAny, {
1373
+ realized: number;
1374
+ unrealized: number;
1375
+ }, {
1376
+ realized: number;
1377
+ unrealized: number;
1378
+ }>], null>, "many">;
1379
+ }, "strip", z.ZodTypeAny, {
1380
+ '24h': [Date, {
1381
+ realized: number;
1382
+ unrealized: number;
1383
+ }][];
1384
+ '1y': [Date, {
1385
+ realized: number;
1386
+ unrealized: number;
1387
+ }][];
1388
+ '7d': [Date, {
1389
+ realized: number;
1390
+ unrealized: number;
1391
+ }][];
1392
+ '30d': [Date, {
1393
+ realized: number;
1394
+ unrealized: number;
1395
+ }][];
1396
+ }, {
1397
+ '24h': [Date, {
1398
+ realized: number;
1399
+ unrealized: number;
1400
+ }][];
1401
+ '1y': [Date, {
1402
+ realized: number;
1403
+ unrealized: number;
1404
+ }][];
1405
+ '7d': [Date, {
1406
+ realized: number;
1407
+ unrealized: number;
1408
+ }][];
1409
+ '30d': [Date, {
1410
+ realized: number;
1411
+ unrealized: number;
1412
+ }][];
1413
+ }>>;
1414
+ total_realized_pnl: z.ZodOptional<z.ZodNumber>;
1415
+ total_unrealized_pnl: z.ZodOptional<z.ZodNumber>;
1416
+ total_pnl_history: z.ZodOptional<z.ZodObject<{
1417
+ '24h': z.ZodObject<{
1418
+ realized: z.ZodNumber;
1419
+ unrealized: z.ZodNumber;
1420
+ }, "strip", z.ZodTypeAny, {
1421
+ realized: number;
1422
+ unrealized: number;
1423
+ }, {
1424
+ realized: number;
1425
+ unrealized: number;
1426
+ }>;
1427
+ '7d': z.ZodObject<{
1428
+ realized: z.ZodNumber;
1429
+ unrealized: z.ZodNumber;
1430
+ }, "strip", z.ZodTypeAny, {
1431
+ realized: number;
1432
+ unrealized: number;
1433
+ }, {
1434
+ realized: number;
1435
+ unrealized: number;
1436
+ }>;
1437
+ '30d': z.ZodObject<{
1438
+ realized: z.ZodNumber;
1439
+ unrealized: z.ZodNumber;
1440
+ }, "strip", z.ZodTypeAny, {
1441
+ realized: number;
1442
+ unrealized: number;
1443
+ }, {
1444
+ realized: number;
1445
+ unrealized: number;
1446
+ }>;
1447
+ '1y': z.ZodObject<{
1448
+ realized: z.ZodNumber;
1449
+ unrealized: z.ZodNumber;
1450
+ }, "strip", z.ZodTypeAny, {
1451
+ realized: number;
1452
+ unrealized: number;
1453
+ }, {
1454
+ realized: number;
1455
+ unrealized: number;
1456
+ }>;
1457
+ }, "strip", z.ZodTypeAny, {
1458
+ '24h': {
1459
+ realized: number;
1460
+ unrealized: number;
1461
+ };
1462
+ '1y': {
1463
+ realized: number;
1464
+ unrealized: number;
1465
+ };
1466
+ '7d': {
1467
+ realized: number;
1468
+ unrealized: number;
1469
+ };
1470
+ '30d': {
1471
+ realized: number;
1472
+ unrealized: number;
1473
+ };
1474
+ }, {
1475
+ '24h': {
1476
+ realized: number;
1477
+ unrealized: number;
1478
+ };
1479
+ '1y': {
1480
+ realized: number;
1481
+ unrealized: number;
1482
+ };
1483
+ '7d': {
1484
+ realized: number;
1485
+ unrealized: number;
1486
+ };
1487
+ '30d': {
1488
+ realized: number;
1489
+ unrealized: number;
1490
+ };
1491
+ }>>;
1492
+ balances_length: z.ZodNumber;
1493
+ }, "strip", z.ZodTypeAny, {
1494
+ assets: {
1495
+ price: number;
1496
+ price_change_24h: number;
1497
+ asset: {
1498
+ symbol: string;
1499
+ name: string;
1500
+ decimals: bigint[];
1501
+ id: number | null;
1502
+ blockchains: string[];
1503
+ contracts: string[];
1504
+ logo?: string | null | undefined;
1505
+ };
1506
+ wallets: string[];
1507
+ contracts_balances: {
1508
+ address: string;
1509
+ balanceRaw: string;
1510
+ balance: number;
1511
+ chainId: string;
1512
+ decimals: number;
1513
+ security?: {
1514
+ buyTax?: string | undefined;
1515
+ sellTax?: string | undefined;
1516
+ transferPausable?: boolean | undefined;
1517
+ top10Holders?: string | undefined;
1518
+ isBlacklisted?: boolean | undefined;
1519
+ isHoneypot?: boolean | undefined;
1520
+ isNotOpenSource?: boolean | undefined;
1521
+ renounced?: boolean | undefined;
1522
+ locked?: string | undefined;
1523
+ isWhitelisted?: boolean | undefined;
1524
+ balanceMutable?: boolean | undefined;
1525
+ lowLiquidity?: string | undefined;
1526
+ burnRate?: string | undefined;
1527
+ isMintable?: boolean | undefined;
1528
+ modifyableTax?: boolean | undefined;
1529
+ selfDestruct?: boolean | undefined;
1530
+ noMintAuthority?: boolean | undefined;
1531
+ frozen?: boolean | undefined;
1532
+ } | null | undefined;
1533
+ tokenType?: "2020" | "2022" | "erc20" | "trc10" | "trc20" | null | undefined;
1534
+ }[];
1535
+ cross_chain_balances: Record<string, {
1536
+ address: string;
1537
+ balanceRaw: string;
1538
+ balance: number;
1539
+ chainId: string;
1540
+ }>;
1541
+ estimated_balance: number;
1542
+ token_balance: number;
1543
+ allocation: number;
1544
+ realized_pnl?: number | undefined;
1545
+ unrealized_pnl?: number | undefined;
1546
+ price_bought?: number | undefined;
1547
+ total_invested?: number | undefined;
1548
+ min_buy_price?: number | undefined;
1549
+ max_buy_price?: number | undefined;
1550
+ }[];
1551
+ wallets: string[];
1552
+ total_wallet_balance: number;
1553
+ balances_length: number;
1554
+ win_rate?: number | undefined;
1555
+ tokens_distribution?: {
1556
+ '10x+': number;
1557
+ '4x - 10x': number;
1558
+ '2x - 4x': number;
1559
+ '10% - 2x': number;
1560
+ '-10% - 10%': number;
1561
+ '-50% - -10%': number;
1562
+ '-100% - -50%': number;
1563
+ } | undefined;
1564
+ pnl_history?: {
1565
+ '24h': [Date, {
1566
+ realized: number;
1567
+ unrealized: number;
1568
+ }][];
1569
+ '1y': [Date, {
1570
+ realized: number;
1571
+ unrealized: number;
1572
+ }][];
1573
+ '7d': [Date, {
1574
+ realized: number;
1575
+ unrealized: number;
1576
+ }][];
1577
+ '30d': [Date, {
1578
+ realized: number;
1579
+ unrealized: number;
1580
+ }][];
1581
+ } | undefined;
1582
+ total_realized_pnl?: number | undefined;
1583
+ total_unrealized_pnl?: number | undefined;
1584
+ total_pnl_history?: {
1585
+ '24h': {
1586
+ realized: number;
1587
+ unrealized: number;
1588
+ };
1589
+ '1y': {
1590
+ realized: number;
1591
+ unrealized: number;
1592
+ };
1593
+ '7d': {
1594
+ realized: number;
1595
+ unrealized: number;
1596
+ };
1597
+ '30d': {
1598
+ realized: number;
1599
+ unrealized: number;
1600
+ };
1601
+ } | undefined;
1602
+ }, {
1603
+ assets: {
1604
+ price: number;
1605
+ price_change_24h: number;
1606
+ asset: {
1607
+ symbol: string;
1608
+ name: string;
1609
+ decimals: bigint[];
1610
+ id: number | null;
1611
+ blockchains: string[];
1612
+ contracts: string[];
1613
+ logo?: string | null | undefined;
1614
+ };
1615
+ wallets: string[];
1616
+ contracts_balances: {
1617
+ address: string;
1618
+ balanceRaw: string;
1619
+ balance: number;
1620
+ chainId: string;
1621
+ decimals: number;
1622
+ security?: {
1623
+ buyTax?: string | undefined;
1624
+ sellTax?: string | undefined;
1625
+ transferPausable?: boolean | undefined;
1626
+ top10Holders?: string | undefined;
1627
+ isBlacklisted?: boolean | undefined;
1628
+ isHoneypot?: boolean | undefined;
1629
+ isNotOpenSource?: boolean | undefined;
1630
+ renounced?: boolean | undefined;
1631
+ locked?: string | undefined;
1632
+ isWhitelisted?: boolean | undefined;
1633
+ balanceMutable?: boolean | undefined;
1634
+ lowLiquidity?: string | undefined;
1635
+ burnRate?: string | undefined;
1636
+ isMintable?: boolean | undefined;
1637
+ modifyableTax?: boolean | undefined;
1638
+ selfDestruct?: boolean | undefined;
1639
+ noMintAuthority?: boolean | undefined;
1640
+ frozen?: boolean | undefined;
1641
+ } | null | undefined;
1642
+ tokenType?: "2020" | "2022" | "erc20" | "trc10" | "trc20" | null | undefined;
1643
+ }[];
1644
+ cross_chain_balances: Record<string, {
1645
+ address: string;
1646
+ balanceRaw: string;
1647
+ balance: number;
1648
+ chainId: string;
1649
+ }>;
1650
+ estimated_balance: number;
1651
+ token_balance: number;
1652
+ allocation: number;
1653
+ realized_pnl?: number | undefined;
1654
+ unrealized_pnl?: number | undefined;
1655
+ price_bought?: number | undefined;
1656
+ total_invested?: number | undefined;
1657
+ min_buy_price?: number | undefined;
1658
+ max_buy_price?: number | undefined;
1659
+ }[];
1660
+ wallets: string[];
1661
+ total_wallet_balance: number;
1662
+ balances_length: number;
1663
+ win_rate?: number | undefined;
1664
+ tokens_distribution?: {
1665
+ '10x+': number;
1666
+ '4x - 10x': number;
1667
+ '2x - 4x': number;
1668
+ '10% - 2x': number;
1669
+ '-10% - 10%': number;
1670
+ '-50% - -10%': number;
1671
+ '-100% - -50%': number;
1672
+ } | undefined;
1673
+ pnl_history?: {
1674
+ '24h': [Date, {
1675
+ realized: number;
1676
+ unrealized: number;
1677
+ }][];
1678
+ '1y': [Date, {
1679
+ realized: number;
1680
+ unrealized: number;
1681
+ }][];
1682
+ '7d': [Date, {
1683
+ realized: number;
1684
+ unrealized: number;
1685
+ }][];
1686
+ '30d': [Date, {
1687
+ realized: number;
1688
+ unrealized: number;
1689
+ }][];
1690
+ } | undefined;
1691
+ total_realized_pnl?: number | undefined;
1692
+ total_unrealized_pnl?: number | undefined;
1693
+ total_pnl_history?: {
1694
+ '24h': {
1695
+ realized: number;
1696
+ unrealized: number;
1697
+ };
1698
+ '1y': {
1699
+ realized: number;
1700
+ unrealized: number;
1701
+ };
1702
+ '7d': {
1703
+ realized: number;
1704
+ unrealized: number;
1705
+ };
1706
+ '30d': {
1707
+ realized: number;
1708
+ unrealized: number;
1709
+ };
1710
+ } | undefined;
1711
+ }>, "many">;
1712
+ backfill_status: z.ZodOptional<z.ZodEnum<["processed", "processing", "pending"]>>;
1713
+ }, "strip", z.ZodTypeAny, {
1714
+ data: {
1715
+ assets: {
1716
+ price: number;
1717
+ price_change_24h: number;
1718
+ asset: {
1719
+ symbol: string;
1720
+ name: string;
1721
+ decimals: bigint[];
1722
+ id: number | null;
1723
+ blockchains: string[];
1724
+ contracts: string[];
1725
+ logo?: string | null | undefined;
1726
+ };
1727
+ wallets: string[];
1728
+ contracts_balances: {
1729
+ address: string;
1730
+ balanceRaw: string;
1731
+ balance: number;
1732
+ chainId: string;
1733
+ decimals: number;
1734
+ security?: {
1735
+ buyTax?: string | undefined;
1736
+ sellTax?: string | undefined;
1737
+ transferPausable?: boolean | undefined;
1738
+ top10Holders?: string | undefined;
1739
+ isBlacklisted?: boolean | undefined;
1740
+ isHoneypot?: boolean | undefined;
1741
+ isNotOpenSource?: boolean | undefined;
1742
+ renounced?: boolean | undefined;
1743
+ locked?: string | undefined;
1744
+ isWhitelisted?: boolean | undefined;
1745
+ balanceMutable?: boolean | undefined;
1746
+ lowLiquidity?: string | undefined;
1747
+ burnRate?: string | undefined;
1748
+ isMintable?: boolean | undefined;
1749
+ modifyableTax?: boolean | undefined;
1750
+ selfDestruct?: boolean | undefined;
1751
+ noMintAuthority?: boolean | undefined;
1752
+ frozen?: boolean | undefined;
1753
+ } | null | undefined;
1754
+ tokenType?: "2020" | "2022" | "erc20" | "trc10" | "trc20" | null | undefined;
1755
+ }[];
1756
+ cross_chain_balances: Record<string, {
1757
+ address: string;
1758
+ balanceRaw: string;
1759
+ balance: number;
1760
+ chainId: string;
1761
+ }>;
1762
+ estimated_balance: number;
1763
+ token_balance: number;
1764
+ allocation: number;
1765
+ realized_pnl?: number | undefined;
1766
+ unrealized_pnl?: number | undefined;
1767
+ price_bought?: number | undefined;
1768
+ total_invested?: number | undefined;
1769
+ min_buy_price?: number | undefined;
1770
+ max_buy_price?: number | undefined;
1771
+ }[];
1772
+ wallets: string[];
1773
+ total_wallet_balance: number;
1774
+ balances_length: number;
1775
+ win_rate?: number | undefined;
1776
+ tokens_distribution?: {
1777
+ '10x+': number;
1778
+ '4x - 10x': number;
1779
+ '2x - 4x': number;
1780
+ '10% - 2x': number;
1781
+ '-10% - 10%': number;
1782
+ '-50% - -10%': number;
1783
+ '-100% - -50%': number;
1784
+ } | undefined;
1785
+ pnl_history?: {
1786
+ '24h': [Date, {
1787
+ realized: number;
1788
+ unrealized: number;
1789
+ }][];
1790
+ '1y': [Date, {
1791
+ realized: number;
1792
+ unrealized: number;
1793
+ }][];
1794
+ '7d': [Date, {
1795
+ realized: number;
1796
+ unrealized: number;
1797
+ }][];
1798
+ '30d': [Date, {
1799
+ realized: number;
1800
+ unrealized: number;
1801
+ }][];
1802
+ } | undefined;
1803
+ total_realized_pnl?: number | undefined;
1804
+ total_unrealized_pnl?: number | undefined;
1805
+ total_pnl_history?: {
1806
+ '24h': {
1807
+ realized: number;
1808
+ unrealized: number;
1809
+ };
1810
+ '1y': {
1811
+ realized: number;
1812
+ unrealized: number;
1813
+ };
1814
+ '7d': {
1815
+ realized: number;
1816
+ unrealized: number;
1817
+ };
1818
+ '30d': {
1819
+ realized: number;
1820
+ unrealized: number;
1821
+ };
1822
+ } | undefined;
1823
+ }[];
1824
+ backfill_status?: "processed" | "processing" | "pending" | undefined;
1825
+ }, {
1826
+ data: {
1827
+ assets: {
1828
+ price: number;
1829
+ price_change_24h: number;
1830
+ asset: {
1831
+ symbol: string;
1832
+ name: string;
1833
+ decimals: bigint[];
1834
+ id: number | null;
1835
+ blockchains: string[];
1836
+ contracts: string[];
1837
+ logo?: string | null | undefined;
1838
+ };
1839
+ wallets: string[];
1840
+ contracts_balances: {
1841
+ address: string;
1842
+ balanceRaw: string;
1843
+ balance: number;
1844
+ chainId: string;
1845
+ decimals: number;
1846
+ security?: {
1847
+ buyTax?: string | undefined;
1848
+ sellTax?: string | undefined;
1849
+ transferPausable?: boolean | undefined;
1850
+ top10Holders?: string | undefined;
1851
+ isBlacklisted?: boolean | undefined;
1852
+ isHoneypot?: boolean | undefined;
1853
+ isNotOpenSource?: boolean | undefined;
1854
+ renounced?: boolean | undefined;
1855
+ locked?: string | undefined;
1856
+ isWhitelisted?: boolean | undefined;
1857
+ balanceMutable?: boolean | undefined;
1858
+ lowLiquidity?: string | undefined;
1859
+ burnRate?: string | undefined;
1860
+ isMintable?: boolean | undefined;
1861
+ modifyableTax?: boolean | undefined;
1862
+ selfDestruct?: boolean | undefined;
1863
+ noMintAuthority?: boolean | undefined;
1864
+ frozen?: boolean | undefined;
1865
+ } | null | undefined;
1866
+ tokenType?: "2020" | "2022" | "erc20" | "trc10" | "trc20" | null | undefined;
1867
+ }[];
1868
+ cross_chain_balances: Record<string, {
1869
+ address: string;
1870
+ balanceRaw: string;
1871
+ balance: number;
1872
+ chainId: string;
1873
+ }>;
1874
+ estimated_balance: number;
1875
+ token_balance: number;
1876
+ allocation: number;
1877
+ realized_pnl?: number | undefined;
1878
+ unrealized_pnl?: number | undefined;
1879
+ price_bought?: number | undefined;
1880
+ total_invested?: number | undefined;
1881
+ min_buy_price?: number | undefined;
1882
+ max_buy_price?: number | undefined;
1883
+ }[];
1884
+ wallets: string[];
1885
+ total_wallet_balance: number;
1886
+ balances_length: number;
1887
+ win_rate?: number | undefined;
1888
+ tokens_distribution?: {
1889
+ '10x+': number;
1890
+ '4x - 10x': number;
1891
+ '2x - 4x': number;
1892
+ '10% - 2x': number;
1893
+ '-10% - 10%': number;
1894
+ '-50% - -10%': number;
1895
+ '-100% - -50%': number;
1896
+ } | undefined;
1897
+ pnl_history?: {
1898
+ '24h': [Date, {
1899
+ realized: number;
1900
+ unrealized: number;
1901
+ }][];
1902
+ '1y': [Date, {
1903
+ realized: number;
1904
+ unrealized: number;
1905
+ }][];
1906
+ '7d': [Date, {
1907
+ realized: number;
1908
+ unrealized: number;
1909
+ }][];
1910
+ '30d': [Date, {
1911
+ realized: number;
1912
+ unrealized: number;
1913
+ }][];
1914
+ } | undefined;
1915
+ total_realized_pnl?: number | undefined;
1916
+ total_unrealized_pnl?: number | undefined;
1917
+ total_pnl_history?: {
1918
+ '24h': {
1919
+ realized: number;
1920
+ unrealized: number;
1921
+ };
1922
+ '1y': {
1923
+ realized: number;
1924
+ unrealized: number;
1925
+ };
1926
+ '7d': {
1927
+ realized: number;
1928
+ unrealized: number;
1929
+ };
1930
+ '30d': {
1931
+ realized: number;
1932
+ unrealized: number;
1933
+ };
1934
+ } | undefined;
1935
+ }[];
1936
+ backfill_status?: "processed" | "processing" | "pending" | undefined;
1937
+ }>;
1938
+ export type MultiPortfolioResponse = z.infer<typeof MultiPortfolioResponseSchema>;
1939
+ export declare const PositionSchema: z.ZodArray<z.ZodObject<{
1940
+ type: z.ZodString;
1941
+ name: z.ZodString;
1942
+ chain_id: z.ZodString;
1943
+ contract: z.ZodString;
1944
+ created_at: z.ZodNullable<z.ZodString>;
1945
+ tokens: z.ZodArray<z.ZodObject<{
1946
+ name: z.ZodString;
1947
+ symbol: z.ZodString;
1948
+ contract: z.ZodString;
1949
+ amount: z.ZodString;
1950
+ amountRaw: z.ZodString;
1951
+ decimals: z.ZodString;
1952
+ amount_usd: z.ZodString;
1953
+ logo: z.ZodNullable<z.ZodString>;
1954
+ price_usd: z.ZodNullable<z.ZodString>;
1955
+ }, "strip", z.ZodTypeAny, {
1956
+ symbol: string;
1957
+ name: string;
1958
+ decimals: string;
1959
+ logo: string | null;
1960
+ amountRaw: string;
1961
+ amount: string;
1962
+ amount_usd: string;
1963
+ contract: string;
1964
+ price_usd: string | null;
1965
+ }, {
1966
+ symbol: string;
1967
+ name: string;
1968
+ decimals: string;
1969
+ logo: string | null;
1970
+ amountRaw: string;
1971
+ amount: string;
1972
+ amount_usd: string;
1973
+ contract: string;
1974
+ price_usd: string | null;
1975
+ }>, "many">;
1976
+ rewards: z.ZodOptional<z.ZodArray<z.ZodObject<{
1977
+ name: z.ZodString;
1978
+ symbol: z.ZodString;
1979
+ contract: z.ZodString;
1980
+ amount: z.ZodString;
1981
+ amountRaw: z.ZodString;
1982
+ decimals: z.ZodString;
1983
+ amount_usd: z.ZodString;
1984
+ price_usd: z.ZodString;
1985
+ }, "strip", z.ZodTypeAny, {
1986
+ symbol: string;
1987
+ name: string;
1988
+ decimals: string;
1989
+ amountRaw: string;
1990
+ amount: string;
1991
+ amount_usd: string;
1992
+ contract: string;
1993
+ price_usd: string;
1994
+ }, {
1995
+ symbol: string;
1996
+ name: string;
1997
+ decimals: string;
1998
+ amountRaw: string;
1999
+ amount: string;
2000
+ amount_usd: string;
2001
+ contract: string;
2002
+ price_usd: string;
2003
+ }>, "many">>;
2004
+ extra: z.ZodOptional<z.ZodObject<{
2005
+ lp_token_amount: z.ZodOptional<z.ZodString>;
2006
+ position_staked_amount: z.ZodOptional<z.ZodString>;
2007
+ factory: z.ZodOptional<z.ZodString>;
2008
+ share_of_pool: z.ZodOptional<z.ZodString>;
2009
+ type: z.ZodOptional<z.ZodEnum<["supply", "borrow"]>>;
2010
+ health_factor: z.ZodOptional<z.ZodNumber>;
2011
+ reserve0: z.ZodOptional<z.ZodString>;
2012
+ reserve1: z.ZodOptional<z.ZodString>;
2013
+ reserve_usd: z.ZodOptional<z.ZodNumber>;
2014
+ }, "strip", z.ZodTypeAny, {
2015
+ type?: "supply" | "borrow" | undefined;
2016
+ factory?: string | undefined;
2017
+ lp_token_amount?: string | undefined;
2018
+ position_staked_amount?: string | undefined;
2019
+ share_of_pool?: string | undefined;
2020
+ health_factor?: number | undefined;
2021
+ reserve0?: string | undefined;
2022
+ reserve1?: string | undefined;
2023
+ reserve_usd?: number | undefined;
2024
+ }, {
2025
+ type?: "supply" | "borrow" | undefined;
2026
+ factory?: string | undefined;
2027
+ lp_token_amount?: string | undefined;
2028
+ position_staked_amount?: string | undefined;
2029
+ share_of_pool?: string | undefined;
2030
+ health_factor?: number | undefined;
2031
+ reserve0?: string | undefined;
2032
+ reserve1?: string | undefined;
2033
+ reserve_usd?: number | undefined;
2034
+ }>>;
2035
+ }, "strip", z.ZodTypeAny, {
2036
+ type: string;
2037
+ name: string;
2038
+ created_at: string | null;
2039
+ tokens: {
2040
+ symbol: string;
2041
+ name: string;
2042
+ decimals: string;
2043
+ logo: string | null;
2044
+ amountRaw: string;
2045
+ amount: string;
2046
+ amount_usd: string;
2047
+ contract: string;
2048
+ price_usd: string | null;
2049
+ }[];
2050
+ chain_id: string;
2051
+ contract: string;
2052
+ rewards?: {
2053
+ symbol: string;
2054
+ name: string;
2055
+ decimals: string;
2056
+ amountRaw: string;
2057
+ amount: string;
2058
+ amount_usd: string;
2059
+ contract: string;
2060
+ price_usd: string;
2061
+ }[] | undefined;
2062
+ extra?: {
2063
+ type?: "supply" | "borrow" | undefined;
2064
+ factory?: string | undefined;
2065
+ lp_token_amount?: string | undefined;
2066
+ position_staked_amount?: string | undefined;
2067
+ share_of_pool?: string | undefined;
2068
+ health_factor?: number | undefined;
2069
+ reserve0?: string | undefined;
2070
+ reserve1?: string | undefined;
2071
+ reserve_usd?: number | undefined;
2072
+ } | undefined;
2073
+ }, {
2074
+ type: string;
2075
+ name: string;
2076
+ created_at: string | null;
2077
+ tokens: {
2078
+ symbol: string;
2079
+ name: string;
2080
+ decimals: string;
2081
+ logo: string | null;
2082
+ amountRaw: string;
2083
+ amount: string;
2084
+ amount_usd: string;
2085
+ contract: string;
2086
+ price_usd: string | null;
2087
+ }[];
2088
+ chain_id: string;
2089
+ contract: string;
2090
+ rewards?: {
2091
+ symbol: string;
2092
+ name: string;
2093
+ decimals: string;
2094
+ amountRaw: string;
2095
+ amount: string;
2096
+ amount_usd: string;
2097
+ contract: string;
2098
+ price_usd: string;
2099
+ }[] | undefined;
2100
+ extra?: {
2101
+ type?: "supply" | "borrow" | undefined;
2102
+ factory?: string | undefined;
2103
+ lp_token_amount?: string | undefined;
2104
+ position_staked_amount?: string | undefined;
2105
+ share_of_pool?: string | undefined;
2106
+ health_factor?: number | undefined;
2107
+ reserve0?: string | undefined;
2108
+ reserve1?: string | undefined;
2109
+ reserve_usd?: number | undefined;
2110
+ } | undefined;
2111
+ }>, "many">;
2112
+ export type PositionOutputType = z.infer<typeof PositionSchema>;
2113
+ export declare const DefiPositionsResponseSchema: z.ZodObject<{
2114
+ data: z.ZodArray<z.ZodObject<{
2115
+ protocol: z.ZodObject<{
2116
+ name: z.ZodString;
2117
+ id: z.ZodString;
2118
+ logo: z.ZodString;
2119
+ url: z.ZodString;
2120
+ }, "strip", z.ZodTypeAny, {
2121
+ name: string;
2122
+ id: string;
2123
+ logo: string;
2124
+ url: string;
2125
+ }, {
2126
+ name: string;
2127
+ id: string;
2128
+ logo: string;
2129
+ url: string;
2130
+ }>;
2131
+ positions: z.ZodArray<z.ZodObject<{
2132
+ type: z.ZodString;
2133
+ name: z.ZodString;
2134
+ chain_id: z.ZodString;
2135
+ contract: z.ZodString;
2136
+ created_at: z.ZodNullable<z.ZodString>;
2137
+ tokens: z.ZodArray<z.ZodObject<{
2138
+ name: z.ZodString;
2139
+ symbol: z.ZodString;
2140
+ contract: z.ZodString;
2141
+ amount: z.ZodString;
2142
+ amountRaw: z.ZodString;
2143
+ decimals: z.ZodString;
2144
+ amount_usd: z.ZodString;
2145
+ logo: z.ZodNullable<z.ZodString>;
2146
+ price_usd: z.ZodNullable<z.ZodString>;
2147
+ }, "strip", z.ZodTypeAny, {
2148
+ symbol: string;
2149
+ name: string;
2150
+ decimals: string;
2151
+ logo: string | null;
2152
+ amountRaw: string;
2153
+ amount: string;
2154
+ amount_usd: string;
2155
+ contract: string;
2156
+ price_usd: string | null;
2157
+ }, {
2158
+ symbol: string;
2159
+ name: string;
2160
+ decimals: string;
2161
+ logo: string | null;
2162
+ amountRaw: string;
2163
+ amount: string;
2164
+ amount_usd: string;
2165
+ contract: string;
2166
+ price_usd: string | null;
2167
+ }>, "many">;
2168
+ rewards: z.ZodOptional<z.ZodArray<z.ZodObject<{
2169
+ name: z.ZodString;
2170
+ symbol: z.ZodString;
2171
+ contract: z.ZodString;
2172
+ amount: z.ZodString;
2173
+ amountRaw: z.ZodString;
2174
+ decimals: z.ZodString;
2175
+ amount_usd: z.ZodString;
2176
+ price_usd: z.ZodString;
2177
+ }, "strip", z.ZodTypeAny, {
2178
+ symbol: string;
2179
+ name: string;
2180
+ decimals: string;
2181
+ amountRaw: string;
2182
+ amount: string;
2183
+ amount_usd: string;
2184
+ contract: string;
2185
+ price_usd: string;
2186
+ }, {
2187
+ symbol: string;
2188
+ name: string;
2189
+ decimals: string;
2190
+ amountRaw: string;
2191
+ amount: string;
2192
+ amount_usd: string;
2193
+ contract: string;
2194
+ price_usd: string;
2195
+ }>, "many">>;
2196
+ extra: z.ZodOptional<z.ZodObject<{
2197
+ lp_token_amount: z.ZodOptional<z.ZodString>;
2198
+ position_staked_amount: z.ZodOptional<z.ZodString>;
2199
+ factory: z.ZodOptional<z.ZodString>;
2200
+ share_of_pool: z.ZodOptional<z.ZodString>;
2201
+ type: z.ZodOptional<z.ZodEnum<["supply", "borrow"]>>;
2202
+ health_factor: z.ZodOptional<z.ZodNumber>;
2203
+ reserve0: z.ZodOptional<z.ZodString>;
2204
+ reserve1: z.ZodOptional<z.ZodString>;
2205
+ reserve_usd: z.ZodOptional<z.ZodNumber>;
2206
+ }, "strip", z.ZodTypeAny, {
2207
+ type?: "supply" | "borrow" | undefined;
2208
+ factory?: string | undefined;
2209
+ lp_token_amount?: string | undefined;
2210
+ position_staked_amount?: string | undefined;
2211
+ share_of_pool?: string | undefined;
2212
+ health_factor?: number | undefined;
2213
+ reserve0?: string | undefined;
2214
+ reserve1?: string | undefined;
2215
+ reserve_usd?: number | undefined;
2216
+ }, {
2217
+ type?: "supply" | "borrow" | undefined;
2218
+ factory?: string | undefined;
2219
+ lp_token_amount?: string | undefined;
2220
+ position_staked_amount?: string | undefined;
2221
+ share_of_pool?: string | undefined;
2222
+ health_factor?: number | undefined;
2223
+ reserve0?: string | undefined;
2224
+ reserve1?: string | undefined;
2225
+ reserve_usd?: number | undefined;
2226
+ }>>;
2227
+ }, "strip", z.ZodTypeAny, {
2228
+ type: string;
2229
+ name: string;
2230
+ created_at: string | null;
2231
+ tokens: {
2232
+ symbol: string;
2233
+ name: string;
2234
+ decimals: string;
2235
+ logo: string | null;
2236
+ amountRaw: string;
2237
+ amount: string;
2238
+ amount_usd: string;
2239
+ contract: string;
2240
+ price_usd: string | null;
2241
+ }[];
2242
+ chain_id: string;
2243
+ contract: string;
2244
+ rewards?: {
2245
+ symbol: string;
2246
+ name: string;
2247
+ decimals: string;
2248
+ amountRaw: string;
2249
+ amount: string;
2250
+ amount_usd: string;
2251
+ contract: string;
2252
+ price_usd: string;
2253
+ }[] | undefined;
2254
+ extra?: {
2255
+ type?: "supply" | "borrow" | undefined;
2256
+ factory?: string | undefined;
2257
+ lp_token_amount?: string | undefined;
2258
+ position_staked_amount?: string | undefined;
2259
+ share_of_pool?: string | undefined;
2260
+ health_factor?: number | undefined;
2261
+ reserve0?: string | undefined;
2262
+ reserve1?: string | undefined;
2263
+ reserve_usd?: number | undefined;
2264
+ } | undefined;
2265
+ }, {
2266
+ type: string;
2267
+ name: string;
2268
+ created_at: string | null;
2269
+ tokens: {
2270
+ symbol: string;
2271
+ name: string;
2272
+ decimals: string;
2273
+ logo: string | null;
2274
+ amountRaw: string;
2275
+ amount: string;
2276
+ amount_usd: string;
2277
+ contract: string;
2278
+ price_usd: string | null;
2279
+ }[];
2280
+ chain_id: string;
2281
+ contract: string;
2282
+ rewards?: {
2283
+ symbol: string;
2284
+ name: string;
2285
+ decimals: string;
2286
+ amountRaw: string;
2287
+ amount: string;
2288
+ amount_usd: string;
2289
+ contract: string;
2290
+ price_usd: string;
2291
+ }[] | undefined;
2292
+ extra?: {
2293
+ type?: "supply" | "borrow" | undefined;
2294
+ factory?: string | undefined;
2295
+ lp_token_amount?: string | undefined;
2296
+ position_staked_amount?: string | undefined;
2297
+ share_of_pool?: string | undefined;
2298
+ health_factor?: number | undefined;
2299
+ reserve0?: string | undefined;
2300
+ reserve1?: string | undefined;
2301
+ reserve_usd?: number | undefined;
2302
+ } | undefined;
2303
+ }>, "many">;
2304
+ }, "strip", z.ZodTypeAny, {
2305
+ protocol: {
2306
+ name: string;
2307
+ id: string;
2308
+ logo: string;
2309
+ url: string;
2310
+ };
2311
+ positions: {
2312
+ type: string;
2313
+ name: string;
2314
+ created_at: string | null;
2315
+ tokens: {
2316
+ symbol: string;
2317
+ name: string;
2318
+ decimals: string;
2319
+ logo: string | null;
2320
+ amountRaw: string;
2321
+ amount: string;
2322
+ amount_usd: string;
2323
+ contract: string;
2324
+ price_usd: string | null;
2325
+ }[];
2326
+ chain_id: string;
2327
+ contract: string;
2328
+ rewards?: {
2329
+ symbol: string;
2330
+ name: string;
2331
+ decimals: string;
2332
+ amountRaw: string;
2333
+ amount: string;
2334
+ amount_usd: string;
2335
+ contract: string;
2336
+ price_usd: string;
2337
+ }[] | undefined;
2338
+ extra?: {
2339
+ type?: "supply" | "borrow" | undefined;
2340
+ factory?: string | undefined;
2341
+ lp_token_amount?: string | undefined;
2342
+ position_staked_amount?: string | undefined;
2343
+ share_of_pool?: string | undefined;
2344
+ health_factor?: number | undefined;
2345
+ reserve0?: string | undefined;
2346
+ reserve1?: string | undefined;
2347
+ reserve_usd?: number | undefined;
2348
+ } | undefined;
2349
+ }[];
2350
+ }, {
2351
+ protocol: {
2352
+ name: string;
2353
+ id: string;
2354
+ logo: string;
2355
+ url: string;
2356
+ };
2357
+ positions: {
2358
+ type: string;
2359
+ name: string;
2360
+ created_at: string | null;
2361
+ tokens: {
2362
+ symbol: string;
2363
+ name: string;
2364
+ decimals: string;
2365
+ logo: string | null;
2366
+ amountRaw: string;
2367
+ amount: string;
2368
+ amount_usd: string;
2369
+ contract: string;
2370
+ price_usd: string | null;
2371
+ }[];
2372
+ chain_id: string;
2373
+ contract: string;
2374
+ rewards?: {
2375
+ symbol: string;
2376
+ name: string;
2377
+ decimals: string;
2378
+ amountRaw: string;
2379
+ amount: string;
2380
+ amount_usd: string;
2381
+ contract: string;
2382
+ price_usd: string;
2383
+ }[] | undefined;
2384
+ extra?: {
2385
+ type?: "supply" | "borrow" | undefined;
2386
+ factory?: string | undefined;
2387
+ lp_token_amount?: string | undefined;
2388
+ position_staked_amount?: string | undefined;
2389
+ share_of_pool?: string | undefined;
2390
+ health_factor?: number | undefined;
2391
+ reserve0?: string | undefined;
2392
+ reserve1?: string | undefined;
2393
+ reserve_usd?: number | undefined;
2394
+ } | undefined;
2395
+ }[];
2396
+ }>, "many">;
2397
+ wallets: z.ZodArray<z.ZodString, "many">;
2398
+ }, "strip", z.ZodTypeAny, {
2399
+ data: {
2400
+ protocol: {
2401
+ name: string;
2402
+ id: string;
2403
+ logo: string;
2404
+ url: string;
2405
+ };
2406
+ positions: {
2407
+ type: string;
2408
+ name: string;
2409
+ created_at: string | null;
2410
+ tokens: {
2411
+ symbol: string;
2412
+ name: string;
2413
+ decimals: string;
2414
+ logo: string | null;
2415
+ amountRaw: string;
2416
+ amount: string;
2417
+ amount_usd: string;
2418
+ contract: string;
2419
+ price_usd: string | null;
2420
+ }[];
2421
+ chain_id: string;
2422
+ contract: string;
2423
+ rewards?: {
2424
+ symbol: string;
2425
+ name: string;
2426
+ decimals: string;
2427
+ amountRaw: string;
2428
+ amount: string;
2429
+ amount_usd: string;
2430
+ contract: string;
2431
+ price_usd: string;
2432
+ }[] | undefined;
2433
+ extra?: {
2434
+ type?: "supply" | "borrow" | undefined;
2435
+ factory?: string | undefined;
2436
+ lp_token_amount?: string | undefined;
2437
+ position_staked_amount?: string | undefined;
2438
+ share_of_pool?: string | undefined;
2439
+ health_factor?: number | undefined;
2440
+ reserve0?: string | undefined;
2441
+ reserve1?: string | undefined;
2442
+ reserve_usd?: number | undefined;
2443
+ } | undefined;
2444
+ }[];
2445
+ }[];
2446
+ wallets: string[];
2447
+ }, {
2448
+ data: {
2449
+ protocol: {
2450
+ name: string;
2451
+ id: string;
2452
+ logo: string;
2453
+ url: string;
2454
+ };
2455
+ positions: {
2456
+ type: string;
2457
+ name: string;
2458
+ created_at: string | null;
2459
+ tokens: {
2460
+ symbol: string;
2461
+ name: string;
2462
+ decimals: string;
2463
+ logo: string | null;
2464
+ amountRaw: string;
2465
+ amount: string;
2466
+ amount_usd: string;
2467
+ contract: string;
2468
+ price_usd: string | null;
2469
+ }[];
2470
+ chain_id: string;
2471
+ contract: string;
2472
+ rewards?: {
2473
+ symbol: string;
2474
+ name: string;
2475
+ decimals: string;
2476
+ amountRaw: string;
2477
+ amount: string;
2478
+ amount_usd: string;
2479
+ contract: string;
2480
+ price_usd: string;
2481
+ }[] | undefined;
2482
+ extra?: {
2483
+ type?: "supply" | "borrow" | undefined;
2484
+ factory?: string | undefined;
2485
+ lp_token_amount?: string | undefined;
2486
+ position_staked_amount?: string | undefined;
2487
+ share_of_pool?: string | undefined;
2488
+ health_factor?: number | undefined;
2489
+ reserve0?: string | undefined;
2490
+ reserve1?: string | undefined;
2491
+ reserve_usd?: number | undefined;
2492
+ } | undefined;
2493
+ }[];
2494
+ }[];
2495
+ wallets: string[];
2496
+ }>;
2497
+ export type DefiPositionsResponse = z.infer<typeof DefiPositionsResponseSchema>;
2498
+ export interface DefiRewardFormat {
2499
+ name: string;
2500
+ symbol: string;
2501
+ decimals: string;
2502
+ contract: string;
2503
+ logo: string | null;
2504
+ amountRaw: string;
2505
+ amount: string;
2506
+ priceUSD: string | null;
2507
+ amountUSD: string;
2508
+ }
2509
+ export interface LPToken {
2510
+ rawBalance: string;
2511
+ formattedBalance: number;
2512
+ assetId: number | null;
2513
+ chainId: string;
2514
+ address: string;
2515
+ decimals: number;
2516
+ name: string;
2517
+ symbol: string;
2518
+ }
2519
+ export interface ProtocolMetadata {
2520
+ name: string;
2521
+ id: string;
2522
+ url: string;
2523
+ logo: string;
2524
+ }
2525
+ export declare const PortfolioParamsSchema: z.ZodObject<{
2526
+ wallet: z.ZodOptional<z.ZodString>;
2527
+ wallets: z.ZodOptional<z.ZodString>;
2528
+ portfolio: z.ZodOptional<z.ZodString>;
2529
+ blockchains: z.ZodOptional<z.ZodString>;
2530
+ asset: z.ZodOptional<z.ZodString>;
2531
+ cache: z.ZodOptional<z.ZodString>;
2532
+ stale: z.ZodOptional<z.ZodString>;
2533
+ recheck_contract: z.ZodOptional<z.ZodString>;
2534
+ from: z.ZodOptional<z.ZodString>;
2535
+ to: z.ZodOptional<z.ZodString>;
2536
+ portfolio_settings: z.ZodOptional<z.ZodString>;
2537
+ unlistedAssets: z.ZodOptional<z.ZodString>;
2538
+ period: z.ZodOptional<z.ZodString>;
2539
+ accuracy: z.ZodOptional<z.ZodString>;
2540
+ testnet: z.ZodOptional<z.ZodString>;
2541
+ minliq: z.ZodOptional<z.ZodString>;
2542
+ filterSpam: z.ZodOptional<z.ZodString>;
2543
+ fetchUntrackedHistory: z.ZodOptional<z.ZodString>;
2544
+ fetchAllChains: z.ZodOptional<z.ZodString>;
2545
+ shouldFetchPriceChange: z.ZodOptional<z.ZodString>;
2546
+ backfillTransfers: z.ZodOptional<z.ZodString>;
2547
+ fetchEmptyBalances: z.ZodOptional<z.ZodString>;
2548
+ pnl: z.ZodOptional<z.ZodString>;
2549
+ }, "strip", z.ZodTypeAny, {
2550
+ blockchains?: string | undefined;
2551
+ testnet?: string | undefined;
2552
+ asset?: string | undefined;
2553
+ shouldFetchPriceChange?: string | undefined;
2554
+ from?: string | undefined;
2555
+ to?: string | undefined;
2556
+ period?: string | undefined;
2557
+ wallet?: string | undefined;
2558
+ wallets?: string | undefined;
2559
+ portfolio?: string | undefined;
2560
+ pnl?: string | undefined;
2561
+ cache?: string | undefined;
2562
+ stale?: string | undefined;
2563
+ recheck_contract?: string | undefined;
2564
+ portfolio_settings?: string | undefined;
2565
+ unlistedAssets?: string | undefined;
2566
+ accuracy?: string | undefined;
2567
+ minliq?: string | undefined;
2568
+ filterSpam?: string | undefined;
2569
+ fetchUntrackedHistory?: string | undefined;
2570
+ fetchAllChains?: string | undefined;
2571
+ backfillTransfers?: string | undefined;
2572
+ fetchEmptyBalances?: string | undefined;
2573
+ }, {
2574
+ blockchains?: string | undefined;
2575
+ testnet?: string | undefined;
2576
+ asset?: string | undefined;
2577
+ shouldFetchPriceChange?: string | undefined;
2578
+ from?: string | undefined;
2579
+ to?: string | undefined;
2580
+ period?: string | undefined;
2581
+ wallet?: string | undefined;
2582
+ wallets?: string | undefined;
2583
+ portfolio?: string | undefined;
2584
+ pnl?: string | undefined;
2585
+ cache?: string | undefined;
2586
+ stale?: string | undefined;
2587
+ recheck_contract?: string | undefined;
2588
+ portfolio_settings?: string | undefined;
2589
+ unlistedAssets?: string | undefined;
2590
+ accuracy?: string | undefined;
2591
+ minliq?: string | undefined;
2592
+ filterSpam?: string | undefined;
2593
+ fetchUntrackedHistory?: string | undefined;
2594
+ fetchAllChains?: string | undefined;
2595
+ backfillTransfers?: string | undefined;
2596
+ fetchEmptyBalances?: string | undefined;
2597
+ }>;
2598
+ export type PortfolioParams = z.input<typeof PortfolioParamsSchema>;
2599
+ export declare const PortfolioDefiParamsSchema: z.ZodObject<{
2600
+ wallet: z.ZodOptional<z.ZodString>;
2601
+ wallets: z.ZodOptional<z.ZodString>;
2602
+ blockchains: z.ZodOptional<z.ZodString>;
2603
+ testnet: z.ZodOptional<z.ZodString>;
2604
+ unlistedAssets: z.ZodOptional<z.ZodString>;
2605
+ }, "strip", z.ZodTypeAny, {
2606
+ blockchains?: string | undefined;
2607
+ testnet?: string | undefined;
2608
+ wallet?: string | undefined;
2609
+ wallets?: string | undefined;
2610
+ unlistedAssets?: string | undefined;
2611
+ }, {
2612
+ blockchains?: string | undefined;
2613
+ testnet?: string | undefined;
2614
+ wallet?: string | undefined;
2615
+ wallets?: string | undefined;
2616
+ unlistedAssets?: string | undefined;
2617
+ }>;
2618
+ export type PortfolioDefiParams = z.input<typeof PortfolioDefiParamsSchema>;
2619
+ export type WalletUnsafeParams = {
2620
+ wallet?: string;
2621
+ wallets?: string;
2622
+ portfolio?: string;
2623
+ blockchains?: string;
2624
+ asset?: string;
2625
+ pnl?: boolean | string;
2626
+ cache?: boolean | string;
2627
+ stale?: number | string;
2628
+ recheck_contract?: boolean | string;
2629
+ from?: string;
2630
+ to?: string;
2631
+ portfolio_settings?: string;
2632
+ unlistedAssets?: boolean | string;
2633
+ period?: string;
2634
+ accuracy?: string;
2635
+ testnet?: boolean | string;
2636
+ minliq?: number | string;
2637
+ filterSpam?: boolean | string;
2638
+ shouldFetchPriceChange?: boolean | string;
2639
+ fetchUntrackedHistory?: boolean | string;
2640
+ fetchAllChains?: boolean | string;
2641
+ backfillTransfers?: boolean | string;
2642
+ fetchEmptyBalances?: boolean | string;
2643
+ };
2644
+ export {};