@mobula_labs/types 0.1.10 → 0.1.11
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/cjs/index.cjs +4973 -3931
- package/dist/cjs/index.cjs.map +58 -52
- package/dist/esm/index.js +4973 -3931
- package/dist/esm/index.js.map +58 -52
- package/dist/index.d.ts +6 -0
- package/dist/misc/ApiKeysQueries.d.ts +1 -1
- package/dist/utils/functions/openAPIHelpers.d.ts +41 -0
- package/dist/utils/schemas/BaseMessage.d.ts +2 -0
- package/dist/utils/schemas/EnrichedMarketData.d.ts +138 -1
- package/dist/utils/schemas/MarketDetailsOutput.d.ts +169 -0
- package/dist/utils/schemas/SecuritySchemas.d.ts +9 -0
- package/dist/utils/schemas/TokenDetailsOutput.d.ts +32 -0
- package/dist/utils/schemas/WalletDeployerSchema.d.ts +124 -12
- package/dist/utils/schemas/WalletMetadataOutput.d.ts +21 -0
- package/dist/v1/market/FundingRateSchema.d.ts +3 -0
- package/dist/v1/market/HoldersSchema.d.ts +5 -0
- package/dist/v1/market/MarketBlockchainPairsSchema.d.ts +59 -0
- package/dist/v1/market/MarketDataSchema.d.ts +5 -0
- package/dist/v1/market/MarketHistoryPairSchema.d.ts +5 -0
- package/dist/v1/market/MarketLighthouseSchema.d.ts +2734 -0
- package/dist/v1/market/MarketMultiDataSchema.d.ts +9 -4
- package/dist/v1/market/MarketMultiHistorySchema.d.ts +5 -0
- package/dist/v1/market/MarketMultiPricesSchema.d.ts +4 -4
- package/dist/v1/market/MarketPairSchema.d.ts +54 -0
- package/dist/v1/market/MarketPairsSchema.d.ts +68 -0
- package/dist/v1/market/MarketQuerySchema.d.ts +5 -0
- package/dist/v1/market/MarketTokenVsMarketSchema.d.ts +4 -4
- package/dist/v1/metadata/MetadataSchema.d.ts +10 -0
- package/dist/v1/pulse/PulseSchema.d.ts +616 -0
- package/dist/v1/search/SearchSchema.d.ts +112 -0
- package/dist/v1/wallet/DeployerSchema.d.ts +72 -8
- package/dist/v1/wallet/HistorySchema.d.ts +5 -0
- package/dist/v1/wallet/WalletLabelSchema.d.ts +550 -0
- package/dist/v1/wallet/WalletNFTSchema.d.ts +5 -0
- package/dist/v1/wallet/WalletPortfolioSchema.d.ts +32 -0
- package/dist/v1/wallet/WalletTradesSchema.d.ts +133 -20
- package/dist/v1/wallet/WalletTransactionSchema.d.ts +12 -2
- package/dist/v2/asset/AssetDetailsSchema.d.ts +217 -1
- package/dist/v2/market/MarketDetailsSchema.d.ts +454 -0
- package/dist/v2/market/MarketOHLCVHistorySchema.d.ts +3 -3
- package/dist/v2/swap/SwapQuotingBatchOutput.d.ts +1647 -257
- package/dist/v2/swap/SwapQuotingBatchSchema.d.ts +12 -12
- package/dist/v2/swap/SwapQuotingOutput.d.ts +1396 -274
- package/dist/v2/swap/SwapQuotingSchema.d.ts +26 -3
- package/dist/v2/swap/SwapSendOutput.d.ts +105 -0
- package/dist/v2/swap/SwapSendSchema.d.ts +77 -4
- package/dist/v2/token/TokenAthSchema.d.ts +29 -1
- package/dist/v2/token/TokenDetailsSchema.d.ts +124 -1
- package/dist/v2/token/TokenMarketsSchema.d.ts +396 -0
- package/dist/v2/token/TokenOHLCVHistorySchema.d.ts +3 -3
- package/dist/v2/token/TokenPositionsSchema.d.ts +119 -12
- package/dist/v2/token/TokenPriceAtSchema.d.ts +131 -0
- package/dist/v2/token/TokenPriceHistorySchema.d.ts +13 -13
- package/dist/v2/token/TokenSecurityOutput.d.ts +192 -0
- package/dist/v2/token/TokenSecurityQuery.d.ts +13 -1
- package/dist/v2/token/TokenTradesSchema.d.ts +572 -3
- package/dist/v2/trades/EnrichedSwapsSchema.d.ts +15994 -0
- package/dist/v2/trades/TradesFiltersSchema.d.ts +49 -0
- package/dist/v2/wallet/WalletActivityV2Schema.d.ts +53 -0
- package/dist/v2/wallet/WalletAnalysisQuerySchema.d.ts +114 -18
- package/dist/v2/wallet/WalletDeployerSchema.d.ts +72 -8
- package/dist/v2/wallet/WalletPerpsPositionsSchema.d.ts +24 -24
- package/dist/v2/wallet/WalletPositionsSchema.d.ts +5979 -33
- package/dist/v2/wallet/WalletTokenBalancesSchema.d.ts +16 -0
- package/dist/v2/wallet/WalletTradesSchema.d.ts +446 -0
- package/dist/wss/FastTradePayloadSchema.d.ts +12 -1
- package/dist/wss/FundingPayloadSchema.d.ts +3 -0
- package/dist/wss/HoldersV2PayloadSchema.d.ts +30 -0
- package/dist/wss/MarketDetailsPayloadSchema.d.ts +3 -0
- package/dist/wss/OhlcvPayloadSchema.d.ts +3 -0
- package/dist/wss/TokenDetailsPayloadSchema.d.ts +3 -0
- package/dist/x402/X402AgentSchemas.d.ts +62 -0
- package/package.json +2 -2
- package/dist/v2/explorer/BlockDataQuerySchema.d.ts +0 -33
- package/dist/v2/explorer/ContractVerifyQuerySchema.ts +0 -27
- package/dist/v2/wallet/WalleAnalysisQuerySchema.d.ts +0 -1135
- package/dist/v2/wallet/WalleFundingQuerySchema.d.ts +0 -57
|
@@ -5,7 +5,7 @@ export declare const TokenOHLCVHistoryParamsSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5
5
|
from: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodOptional<z.ZodNumber>, z.ZodOptional<z.ZodDate>]>, Date | undefined, number | Date | undefined>, Date | 0, number | Date | undefined>;
|
|
6
6
|
to: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodOptional<z.ZodNumber>, z.ZodOptional<z.ZodDate>]>, Date | undefined, number | Date | undefined>, Date, number | Date | undefined>;
|
|
7
7
|
period: z.ZodEffects<z.ZodOptional<z.ZodString>, string, string | undefined>;
|
|
8
|
-
amount: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
amount: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, number | undefined>;
|
|
9
9
|
usd: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>>, boolean, string | boolean | undefined>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
11
|
address: string;
|
|
@@ -48,7 +48,7 @@ export declare const TokenOHLCVHistoryBatchParamsSchema: z.ZodUnion<[z.ZodArray<
|
|
|
48
48
|
from: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodOptional<z.ZodNumber>, z.ZodOptional<z.ZodDate>]>, Date | undefined, number | Date | undefined>, Date | 0, number | Date | undefined>;
|
|
49
49
|
to: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodOptional<z.ZodNumber>, z.ZodOptional<z.ZodDate>]>, Date | undefined, number | Date | undefined>, Date, number | Date | undefined>;
|
|
50
50
|
period: z.ZodEffects<z.ZodOptional<z.ZodString>, string, string | undefined>;
|
|
51
|
-
amount: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
amount: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, number | undefined>;
|
|
52
52
|
usd: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>>, boolean, string | boolean | undefined>;
|
|
53
53
|
}, "strip", z.ZodTypeAny, {
|
|
54
54
|
address: string;
|
|
@@ -73,7 +73,7 @@ export declare const TokenOHLCVHistoryBatchParamsSchema: z.ZodUnion<[z.ZodArray<
|
|
|
73
73
|
from: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodOptional<z.ZodNumber>, z.ZodOptional<z.ZodDate>]>, Date | undefined, number | Date | undefined>, Date | 0, number | Date | undefined>;
|
|
74
74
|
to: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodOptional<z.ZodNumber>, z.ZodOptional<z.ZodDate>]>, Date | undefined, number | Date | undefined>, Date, number | Date | undefined>;
|
|
75
75
|
period: z.ZodEffects<z.ZodOptional<z.ZodString>, string, string | undefined>;
|
|
76
|
-
amount: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
amount: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, number | undefined>;
|
|
77
77
|
usd: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>>, boolean, string | boolean | undefined>;
|
|
78
78
|
}, "strip", z.ZodTypeAny, {
|
|
79
79
|
address: string;
|
|
@@ -8,10 +8,16 @@ export declare const TokenPositionsParamsSchema: z.ZodObject<{
|
|
|
8
8
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
9
9
|
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10
10
|
walletAddresses: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>>;
|
|
11
|
+
/** Use swap recipient mode (query wallet_positions_recipients table instead of wallet_positions) */
|
|
12
|
+
useSwapRecipient: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
13
|
+
/** Include fees in response (total_fees_paid_usd from wallet_positions_recipients) */
|
|
14
|
+
includeFees: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11
15
|
}, "strip", z.ZodTypeAny, {
|
|
12
16
|
limit: number;
|
|
13
17
|
offset: number;
|
|
14
18
|
force: boolean;
|
|
19
|
+
useSwapRecipient: boolean;
|
|
20
|
+
includeFees: boolean;
|
|
15
21
|
address?: string | undefined;
|
|
16
22
|
blockchain?: string | undefined;
|
|
17
23
|
walletAddresses?: string[] | undefined;
|
|
@@ -24,8 +30,15 @@ export declare const TokenPositionsParamsSchema: z.ZodObject<{
|
|
|
24
30
|
force?: boolean | undefined;
|
|
25
31
|
walletAddresses?: string | string[] | undefined;
|
|
26
32
|
label?: Tags | undefined;
|
|
33
|
+
useSwapRecipient?: boolean | undefined;
|
|
34
|
+
includeFees?: boolean | undefined;
|
|
27
35
|
}>;
|
|
28
36
|
export type TokenPositionsParams = z.input<typeof TokenPositionsParamsSchema>;
|
|
37
|
+
export declare const TokenPositionsParamsSchemaOpenAPI: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
38
|
+
[x: string]: any;
|
|
39
|
+
}, {
|
|
40
|
+
[x: string]: any;
|
|
41
|
+
}>;
|
|
29
42
|
export declare const TokenPositionOutput: z.ZodObject<{
|
|
30
43
|
chainId: z.ZodString;
|
|
31
44
|
walletAddress: z.ZodString;
|
|
@@ -38,6 +51,8 @@ export declare const TokenPositionOutput: z.ZodObject<{
|
|
|
38
51
|
realizedPnlUSD: z.ZodString;
|
|
39
52
|
unrealizedPnlUSD: z.ZodString;
|
|
40
53
|
totalPnlUSD: z.ZodString;
|
|
54
|
+
/** Total fees paid on this position (gas + platform + mev fees) - only present when includeFees is enabled */
|
|
55
|
+
totalFeesPaidUSD: z.ZodOptional<z.ZodString>;
|
|
41
56
|
buys: z.ZodNumber;
|
|
42
57
|
sells: z.ZodNumber;
|
|
43
58
|
volumeBuyToken: z.ZodString;
|
|
@@ -55,14 +70,35 @@ export declare const TokenPositionOutput: z.ZodObject<{
|
|
|
55
70
|
entityName: z.ZodNullable<z.ZodString>;
|
|
56
71
|
entityLogo: z.ZodNullable<z.ZodString>;
|
|
57
72
|
entityLabels: z.ZodArray<z.ZodString, "many">;
|
|
73
|
+
entityType: z.ZodNullable<z.ZodString>;
|
|
74
|
+
entityDescription: z.ZodNullable<z.ZodString>;
|
|
75
|
+
entityTwitter: z.ZodNullable<z.ZodString>;
|
|
76
|
+
entityWebsite: z.ZodNullable<z.ZodString>;
|
|
77
|
+
entityGithub: z.ZodNullable<z.ZodString>;
|
|
78
|
+
entityDiscord: z.ZodNullable<z.ZodString>;
|
|
79
|
+
entityTelegram: z.ZodNullable<z.ZodString>;
|
|
58
80
|
}, "strip", z.ZodTypeAny, {
|
|
59
81
|
entityName: string | null;
|
|
60
82
|
entityLogo: string | null;
|
|
61
83
|
entityLabels: string[];
|
|
84
|
+
entityType: string | null;
|
|
85
|
+
entityDescription: string | null;
|
|
86
|
+
entityTwitter: string | null;
|
|
87
|
+
entityWebsite: string | null;
|
|
88
|
+
entityGithub: string | null;
|
|
89
|
+
entityDiscord: string | null;
|
|
90
|
+
entityTelegram: string | null;
|
|
62
91
|
}, {
|
|
63
92
|
entityName: string | null;
|
|
64
93
|
entityLogo: string | null;
|
|
65
94
|
entityLabels: string[];
|
|
95
|
+
entityType: string | null;
|
|
96
|
+
entityDescription: string | null;
|
|
97
|
+
entityTwitter: string | null;
|
|
98
|
+
entityWebsite: string | null;
|
|
99
|
+
entityGithub: string | null;
|
|
100
|
+
entityDiscord: string | null;
|
|
101
|
+
entityTelegram: string | null;
|
|
66
102
|
}>>>;
|
|
67
103
|
platform: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
68
104
|
id: z.ZodString;
|
|
@@ -142,6 +178,8 @@ export declare const TokenPositionOutput: z.ZodObject<{
|
|
|
142
178
|
realizedPnlUSD: string;
|
|
143
179
|
unrealizedPnlUSD: string;
|
|
144
180
|
chainId: string;
|
|
181
|
+
buys: number;
|
|
182
|
+
sells: number;
|
|
145
183
|
fundingInfo: {
|
|
146
184
|
date: Date | null;
|
|
147
185
|
chainId: string | null;
|
|
@@ -160,8 +198,6 @@ export declare const TokenPositionOutput: z.ZodObject<{
|
|
|
160
198
|
fromWalletTag: string | null;
|
|
161
199
|
};
|
|
162
200
|
labels: string[] | null;
|
|
163
|
-
buys: number;
|
|
164
|
-
sells: number;
|
|
165
201
|
volumeBuyToken: string;
|
|
166
202
|
volumeSellToken: string;
|
|
167
203
|
avgBuyPriceUSD: string;
|
|
@@ -180,6 +216,7 @@ export declare const TokenPositionOutput: z.ZodObject<{
|
|
|
180
216
|
lastActivityAt: Date | null;
|
|
181
217
|
firstTradeAt: Date | null;
|
|
182
218
|
lastTradeAt: Date | null;
|
|
219
|
+
totalFeesPaidUSD?: string | undefined;
|
|
183
220
|
platform?: {
|
|
184
221
|
name: string;
|
|
185
222
|
id: string;
|
|
@@ -189,11 +226,20 @@ export declare const TokenPositionOutput: z.ZodObject<{
|
|
|
189
226
|
entityName: string | null;
|
|
190
227
|
entityLogo: string | null;
|
|
191
228
|
entityLabels: string[];
|
|
229
|
+
entityType: string | null;
|
|
230
|
+
entityDescription: string | null;
|
|
231
|
+
entityTwitter: string | null;
|
|
232
|
+
entityWebsite: string | null;
|
|
233
|
+
entityGithub: string | null;
|
|
234
|
+
entityDiscord: string | null;
|
|
235
|
+
entityTelegram: string | null;
|
|
192
236
|
} | null | undefined;
|
|
193
237
|
}, {
|
|
194
238
|
realizedPnlUSD: string;
|
|
195
239
|
unrealizedPnlUSD: string;
|
|
196
240
|
chainId: string;
|
|
241
|
+
buys: number;
|
|
242
|
+
sells: number;
|
|
197
243
|
fundingInfo: {
|
|
198
244
|
date: Date | null;
|
|
199
245
|
chainId: string | null;
|
|
@@ -211,8 +257,6 @@ export declare const TokenPositionOutput: z.ZodObject<{
|
|
|
211
257
|
fromWalletLogo: string | null;
|
|
212
258
|
fromWalletTag: string | null;
|
|
213
259
|
};
|
|
214
|
-
buys: number;
|
|
215
|
-
sells: number;
|
|
216
260
|
volumeBuyToken: string;
|
|
217
261
|
volumeSellToken: string;
|
|
218
262
|
avgBuyPriceUSD: string;
|
|
@@ -231,6 +275,7 @@ export declare const TokenPositionOutput: z.ZodObject<{
|
|
|
231
275
|
lastActivityAt: Date | null;
|
|
232
276
|
firstTradeAt: Date | null;
|
|
233
277
|
lastTradeAt: Date | null;
|
|
278
|
+
totalFeesPaidUSD?: string | undefined;
|
|
234
279
|
platform?: {
|
|
235
280
|
name: string;
|
|
236
281
|
id: string;
|
|
@@ -241,6 +286,13 @@ export declare const TokenPositionOutput: z.ZodObject<{
|
|
|
241
286
|
entityName: string | null;
|
|
242
287
|
entityLogo: string | null;
|
|
243
288
|
entityLabels: string[];
|
|
289
|
+
entityType: string | null;
|
|
290
|
+
entityDescription: string | null;
|
|
291
|
+
entityTwitter: string | null;
|
|
292
|
+
entityWebsite: string | null;
|
|
293
|
+
entityGithub: string | null;
|
|
294
|
+
entityDiscord: string | null;
|
|
295
|
+
entityTelegram: string | null;
|
|
244
296
|
} | null | undefined;
|
|
245
297
|
}>;
|
|
246
298
|
export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
@@ -256,6 +308,8 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
256
308
|
realizedPnlUSD: z.ZodString;
|
|
257
309
|
unrealizedPnlUSD: z.ZodString;
|
|
258
310
|
totalPnlUSD: z.ZodString;
|
|
311
|
+
/** Total fees paid on this position (gas + platform + mev fees) - only present when includeFees is enabled */
|
|
312
|
+
totalFeesPaidUSD: z.ZodOptional<z.ZodString>;
|
|
259
313
|
buys: z.ZodNumber;
|
|
260
314
|
sells: z.ZodNumber;
|
|
261
315
|
volumeBuyToken: z.ZodString;
|
|
@@ -273,14 +327,35 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
273
327
|
entityName: z.ZodNullable<z.ZodString>;
|
|
274
328
|
entityLogo: z.ZodNullable<z.ZodString>;
|
|
275
329
|
entityLabels: z.ZodArray<z.ZodString, "many">;
|
|
330
|
+
entityType: z.ZodNullable<z.ZodString>;
|
|
331
|
+
entityDescription: z.ZodNullable<z.ZodString>;
|
|
332
|
+
entityTwitter: z.ZodNullable<z.ZodString>;
|
|
333
|
+
entityWebsite: z.ZodNullable<z.ZodString>;
|
|
334
|
+
entityGithub: z.ZodNullable<z.ZodString>;
|
|
335
|
+
entityDiscord: z.ZodNullable<z.ZodString>;
|
|
336
|
+
entityTelegram: z.ZodNullable<z.ZodString>;
|
|
276
337
|
}, "strip", z.ZodTypeAny, {
|
|
277
338
|
entityName: string | null;
|
|
278
339
|
entityLogo: string | null;
|
|
279
340
|
entityLabels: string[];
|
|
341
|
+
entityType: string | null;
|
|
342
|
+
entityDescription: string | null;
|
|
343
|
+
entityTwitter: string | null;
|
|
344
|
+
entityWebsite: string | null;
|
|
345
|
+
entityGithub: string | null;
|
|
346
|
+
entityDiscord: string | null;
|
|
347
|
+
entityTelegram: string | null;
|
|
280
348
|
}, {
|
|
281
349
|
entityName: string | null;
|
|
282
350
|
entityLogo: string | null;
|
|
283
351
|
entityLabels: string[];
|
|
352
|
+
entityType: string | null;
|
|
353
|
+
entityDescription: string | null;
|
|
354
|
+
entityTwitter: string | null;
|
|
355
|
+
entityWebsite: string | null;
|
|
356
|
+
entityGithub: string | null;
|
|
357
|
+
entityDiscord: string | null;
|
|
358
|
+
entityTelegram: string | null;
|
|
284
359
|
}>>>;
|
|
285
360
|
platform: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
286
361
|
id: z.ZodString;
|
|
@@ -360,6 +435,8 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
360
435
|
realizedPnlUSD: string;
|
|
361
436
|
unrealizedPnlUSD: string;
|
|
362
437
|
chainId: string;
|
|
438
|
+
buys: number;
|
|
439
|
+
sells: number;
|
|
363
440
|
fundingInfo: {
|
|
364
441
|
date: Date | null;
|
|
365
442
|
chainId: string | null;
|
|
@@ -378,8 +455,6 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
378
455
|
fromWalletTag: string | null;
|
|
379
456
|
};
|
|
380
457
|
labels: string[] | null;
|
|
381
|
-
buys: number;
|
|
382
|
-
sells: number;
|
|
383
458
|
volumeBuyToken: string;
|
|
384
459
|
volumeSellToken: string;
|
|
385
460
|
avgBuyPriceUSD: string;
|
|
@@ -398,6 +473,7 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
398
473
|
lastActivityAt: Date | null;
|
|
399
474
|
firstTradeAt: Date | null;
|
|
400
475
|
lastTradeAt: Date | null;
|
|
476
|
+
totalFeesPaidUSD?: string | undefined;
|
|
401
477
|
platform?: {
|
|
402
478
|
name: string;
|
|
403
479
|
id: string;
|
|
@@ -407,11 +483,20 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
407
483
|
entityName: string | null;
|
|
408
484
|
entityLogo: string | null;
|
|
409
485
|
entityLabels: string[];
|
|
486
|
+
entityType: string | null;
|
|
487
|
+
entityDescription: string | null;
|
|
488
|
+
entityTwitter: string | null;
|
|
489
|
+
entityWebsite: string | null;
|
|
490
|
+
entityGithub: string | null;
|
|
491
|
+
entityDiscord: string | null;
|
|
492
|
+
entityTelegram: string | null;
|
|
410
493
|
} | null | undefined;
|
|
411
494
|
}, {
|
|
412
495
|
realizedPnlUSD: string;
|
|
413
496
|
unrealizedPnlUSD: string;
|
|
414
497
|
chainId: string;
|
|
498
|
+
buys: number;
|
|
499
|
+
sells: number;
|
|
415
500
|
fundingInfo: {
|
|
416
501
|
date: Date | null;
|
|
417
502
|
chainId: string | null;
|
|
@@ -429,8 +514,6 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
429
514
|
fromWalletLogo: string | null;
|
|
430
515
|
fromWalletTag: string | null;
|
|
431
516
|
};
|
|
432
|
-
buys: number;
|
|
433
|
-
sells: number;
|
|
434
517
|
volumeBuyToken: string;
|
|
435
518
|
volumeSellToken: string;
|
|
436
519
|
avgBuyPriceUSD: string;
|
|
@@ -449,6 +532,7 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
449
532
|
lastActivityAt: Date | null;
|
|
450
533
|
firstTradeAt: Date | null;
|
|
451
534
|
lastTradeAt: Date | null;
|
|
535
|
+
totalFeesPaidUSD?: string | undefined;
|
|
452
536
|
platform?: {
|
|
453
537
|
name: string;
|
|
454
538
|
id: string;
|
|
@@ -459,6 +543,13 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
459
543
|
entityName: string | null;
|
|
460
544
|
entityLogo: string | null;
|
|
461
545
|
entityLabels: string[];
|
|
546
|
+
entityType: string | null;
|
|
547
|
+
entityDescription: string | null;
|
|
548
|
+
entityTwitter: string | null;
|
|
549
|
+
entityWebsite: string | null;
|
|
550
|
+
entityGithub: string | null;
|
|
551
|
+
entityDiscord: string | null;
|
|
552
|
+
entityTelegram: string | null;
|
|
462
553
|
} | null | undefined;
|
|
463
554
|
}>, "many">;
|
|
464
555
|
totalCount: z.ZodNumber;
|
|
@@ -467,6 +558,8 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
467
558
|
realizedPnlUSD: string;
|
|
468
559
|
unrealizedPnlUSD: string;
|
|
469
560
|
chainId: string;
|
|
561
|
+
buys: number;
|
|
562
|
+
sells: number;
|
|
470
563
|
fundingInfo: {
|
|
471
564
|
date: Date | null;
|
|
472
565
|
chainId: string | null;
|
|
@@ -485,8 +578,6 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
485
578
|
fromWalletTag: string | null;
|
|
486
579
|
};
|
|
487
580
|
labels: string[] | null;
|
|
488
|
-
buys: number;
|
|
489
|
-
sells: number;
|
|
490
581
|
volumeBuyToken: string;
|
|
491
582
|
volumeSellToken: string;
|
|
492
583
|
avgBuyPriceUSD: string;
|
|
@@ -505,6 +596,7 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
505
596
|
lastActivityAt: Date | null;
|
|
506
597
|
firstTradeAt: Date | null;
|
|
507
598
|
lastTradeAt: Date | null;
|
|
599
|
+
totalFeesPaidUSD?: string | undefined;
|
|
508
600
|
platform?: {
|
|
509
601
|
name: string;
|
|
510
602
|
id: string;
|
|
@@ -514,6 +606,13 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
514
606
|
entityName: string | null;
|
|
515
607
|
entityLogo: string | null;
|
|
516
608
|
entityLabels: string[];
|
|
609
|
+
entityType: string | null;
|
|
610
|
+
entityDescription: string | null;
|
|
611
|
+
entityTwitter: string | null;
|
|
612
|
+
entityWebsite: string | null;
|
|
613
|
+
entityGithub: string | null;
|
|
614
|
+
entityDiscord: string | null;
|
|
615
|
+
entityTelegram: string | null;
|
|
517
616
|
} | null | undefined;
|
|
518
617
|
}[];
|
|
519
618
|
totalCount: number;
|
|
@@ -522,6 +621,8 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
522
621
|
realizedPnlUSD: string;
|
|
523
622
|
unrealizedPnlUSD: string;
|
|
524
623
|
chainId: string;
|
|
624
|
+
buys: number;
|
|
625
|
+
sells: number;
|
|
525
626
|
fundingInfo: {
|
|
526
627
|
date: Date | null;
|
|
527
628
|
chainId: string | null;
|
|
@@ -539,8 +640,6 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
539
640
|
fromWalletLogo: string | null;
|
|
540
641
|
fromWalletTag: string | null;
|
|
541
642
|
};
|
|
542
|
-
buys: number;
|
|
543
|
-
sells: number;
|
|
544
643
|
volumeBuyToken: string;
|
|
545
644
|
volumeSellToken: string;
|
|
546
645
|
avgBuyPriceUSD: string;
|
|
@@ -559,6 +658,7 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
559
658
|
lastActivityAt: Date | null;
|
|
560
659
|
firstTradeAt: Date | null;
|
|
561
660
|
lastTradeAt: Date | null;
|
|
661
|
+
totalFeesPaidUSD?: string | undefined;
|
|
562
662
|
platform?: {
|
|
563
663
|
name: string;
|
|
564
664
|
id: string;
|
|
@@ -569,6 +669,13 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
569
669
|
entityName: string | null;
|
|
570
670
|
entityLogo: string | null;
|
|
571
671
|
entityLabels: string[];
|
|
672
|
+
entityType: string | null;
|
|
673
|
+
entityDescription: string | null;
|
|
674
|
+
entityTwitter: string | null;
|
|
675
|
+
entityWebsite: string | null;
|
|
676
|
+
entityGithub: string | null;
|
|
677
|
+
entityDiscord: string | null;
|
|
678
|
+
entityTelegram: string | null;
|
|
572
679
|
} | null | undefined;
|
|
573
680
|
}[];
|
|
574
681
|
totalCount: number;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const TokenPriceAtParamsSchema: z.ZodObject<{
|
|
3
|
+
blockchain: z.ZodOptional<z.ZodString>;
|
|
4
|
+
address: z.ZodOptional<z.ZodString>;
|
|
5
|
+
timestamp: z.ZodNumber;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
timestamp: number;
|
|
8
|
+
address?: string | undefined;
|
|
9
|
+
blockchain?: string | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
timestamp: number;
|
|
12
|
+
address?: string | undefined;
|
|
13
|
+
blockchain?: string | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const TokenPriceAtBatchParamsSchema: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
16
|
+
blockchain: z.ZodOptional<z.ZodString>;
|
|
17
|
+
address: z.ZodOptional<z.ZodString>;
|
|
18
|
+
timestamp: z.ZodNumber;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
timestamp: number;
|
|
21
|
+
address?: string | undefined;
|
|
22
|
+
blockchain?: string | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
timestamp: number;
|
|
25
|
+
address?: string | undefined;
|
|
26
|
+
blockchain?: string | undefined;
|
|
27
|
+
}>, "many">, z.ZodObject<{
|
|
28
|
+
items: z.ZodArray<z.ZodObject<{
|
|
29
|
+
blockchain: z.ZodOptional<z.ZodString>;
|
|
30
|
+
address: z.ZodOptional<z.ZodString>;
|
|
31
|
+
timestamp: z.ZodNumber;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
timestamp: number;
|
|
34
|
+
address?: string | undefined;
|
|
35
|
+
blockchain?: string | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
timestamp: number;
|
|
38
|
+
address?: string | undefined;
|
|
39
|
+
blockchain?: string | undefined;
|
|
40
|
+
}>, "many">;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
items: {
|
|
43
|
+
timestamp: number;
|
|
44
|
+
address?: string | undefined;
|
|
45
|
+
blockchain?: string | undefined;
|
|
46
|
+
}[];
|
|
47
|
+
}, {
|
|
48
|
+
items: {
|
|
49
|
+
timestamp: number;
|
|
50
|
+
address?: string | undefined;
|
|
51
|
+
blockchain?: string | undefined;
|
|
52
|
+
}[];
|
|
53
|
+
}>]>;
|
|
54
|
+
export type TokenPriceAtParams = z.input<typeof TokenPriceAtParamsSchema>;
|
|
55
|
+
export type TokenPriceAtBatchParams = z.input<typeof TokenPriceAtBatchParamsSchema>;
|
|
56
|
+
export declare const TokenPriceAtResponseSchema: z.ZodObject<{
|
|
57
|
+
data: z.ZodObject<{
|
|
58
|
+
priceUSD: z.ZodNumber;
|
|
59
|
+
timestamp: z.ZodNumber;
|
|
60
|
+
swapTimestamp: z.ZodNumber;
|
|
61
|
+
poolAddress: z.ZodString;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
priceUSD: number;
|
|
64
|
+
poolAddress: string;
|
|
65
|
+
timestamp: number;
|
|
66
|
+
swapTimestamp: number;
|
|
67
|
+
}, {
|
|
68
|
+
priceUSD: number;
|
|
69
|
+
poolAddress: string;
|
|
70
|
+
timestamp: number;
|
|
71
|
+
swapTimestamp: number;
|
|
72
|
+
}>;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
data: {
|
|
75
|
+
priceUSD: number;
|
|
76
|
+
poolAddress: string;
|
|
77
|
+
timestamp: number;
|
|
78
|
+
swapTimestamp: number;
|
|
79
|
+
};
|
|
80
|
+
}, {
|
|
81
|
+
data: {
|
|
82
|
+
priceUSD: number;
|
|
83
|
+
poolAddress: string;
|
|
84
|
+
timestamp: number;
|
|
85
|
+
swapTimestamp: number;
|
|
86
|
+
};
|
|
87
|
+
}>;
|
|
88
|
+
export declare const TokenPriceAtBatchResponseSchema: z.ZodObject<{
|
|
89
|
+
payload: z.ZodArray<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
90
|
+
priceUSD: z.ZodNumber;
|
|
91
|
+
timestamp: z.ZodNumber;
|
|
92
|
+
swapTimestamp: z.ZodNumber;
|
|
93
|
+
poolAddress: z.ZodString;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
priceUSD: number;
|
|
96
|
+
poolAddress: string;
|
|
97
|
+
timestamp: number;
|
|
98
|
+
swapTimestamp: number;
|
|
99
|
+
}, {
|
|
100
|
+
priceUSD: number;
|
|
101
|
+
poolAddress: string;
|
|
102
|
+
timestamp: number;
|
|
103
|
+
swapTimestamp: number;
|
|
104
|
+
}>, z.ZodObject<{
|
|
105
|
+
error: z.ZodOptional<z.ZodString>;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
error?: string | undefined;
|
|
108
|
+
}, {
|
|
109
|
+
error?: string | undefined;
|
|
110
|
+
}>]>>, "many">;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
payload: ({
|
|
113
|
+
priceUSD: number;
|
|
114
|
+
poolAddress: string;
|
|
115
|
+
timestamp: number;
|
|
116
|
+
swapTimestamp: number;
|
|
117
|
+
} | {
|
|
118
|
+
error?: string | undefined;
|
|
119
|
+
} | null)[];
|
|
120
|
+
}, {
|
|
121
|
+
payload: ({
|
|
122
|
+
priceUSD: number;
|
|
123
|
+
poolAddress: string;
|
|
124
|
+
timestamp: number;
|
|
125
|
+
swapTimestamp: number;
|
|
126
|
+
} | {
|
|
127
|
+
error?: string | undefined;
|
|
128
|
+
} | null)[];
|
|
129
|
+
}>;
|
|
130
|
+
export type TokenPriceAtResponse = z.infer<typeof TokenPriceAtResponseSchema>;
|
|
131
|
+
export type TokenPriceAtBatchResponse = z.infer<typeof TokenPriceAtBatchResponseSchema>;
|
|
@@ -2,63 +2,63 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const TokenPriceHistoryParamsSchema: z.ZodEffects<z.ZodObject<{
|
|
3
3
|
address: z.ZodString;
|
|
4
4
|
chainId: z.ZodString;
|
|
5
|
-
timeframe: z.ZodDefault<z.ZodEnum<["15m", "1h", "24h", "7d", "30d", "1y"]>>;
|
|
5
|
+
timeframe: z.ZodDefault<z.ZodEnum<["5m", "15m", "1h", "24h", "7d", "30d", "1y"]>>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
7
|
address: string;
|
|
8
8
|
chainId: string;
|
|
9
|
-
timeframe: "1h" | "15m" | "24h" | "1y" | "7d" | "30d";
|
|
9
|
+
timeframe: "1h" | "5m" | "15m" | "24h" | "1y" | "7d" | "30d";
|
|
10
10
|
}, {
|
|
11
11
|
address: string;
|
|
12
12
|
chainId: string;
|
|
13
|
-
timeframe?: "1h" | "15m" | "24h" | "1y" | "7d" | "30d" | undefined;
|
|
13
|
+
timeframe?: "1h" | "5m" | "15m" | "24h" | "1y" | "7d" | "30d" | undefined;
|
|
14
14
|
}>, {
|
|
15
15
|
address: string;
|
|
16
16
|
chainId: string;
|
|
17
|
-
timeframe: "1h" | "15m" | "24h" | "1y" | "7d" | "30d";
|
|
17
|
+
timeframe: "1h" | "5m" | "15m" | "24h" | "1y" | "7d" | "30d";
|
|
18
18
|
}, {
|
|
19
19
|
address: string;
|
|
20
20
|
chainId: string;
|
|
21
|
-
timeframe?: "1h" | "15m" | "24h" | "1y" | "7d" | "30d" | undefined;
|
|
21
|
+
timeframe?: "1h" | "5m" | "15m" | "24h" | "1y" | "7d" | "30d" | undefined;
|
|
22
22
|
}>;
|
|
23
23
|
export type TokenPriceHistoryParams = z.input<typeof TokenPriceHistoryParamsSchema>;
|
|
24
24
|
export type TokenPriceHistoryInferType = z.infer<typeof TokenPriceHistoryParamsSchema>;
|
|
25
25
|
export declare const TokenPriceHistoryBatchParamsSchema: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
26
26
|
address: z.ZodString;
|
|
27
27
|
chainId: z.ZodString;
|
|
28
|
-
timeframe: z.ZodDefault<z.ZodEnum<["15m", "1h", "24h", "7d", "30d", "1y"]>>;
|
|
28
|
+
timeframe: z.ZodDefault<z.ZodEnum<["5m", "15m", "1h", "24h", "7d", "30d", "1y"]>>;
|
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
|
30
30
|
address: string;
|
|
31
31
|
chainId: string;
|
|
32
|
-
timeframe: "1h" | "15m" | "24h" | "1y" | "7d" | "30d";
|
|
32
|
+
timeframe: "1h" | "5m" | "15m" | "24h" | "1y" | "7d" | "30d";
|
|
33
33
|
}, {
|
|
34
34
|
address: string;
|
|
35
35
|
chainId: string;
|
|
36
|
-
timeframe?: "1h" | "15m" | "24h" | "1y" | "7d" | "30d" | undefined;
|
|
36
|
+
timeframe?: "1h" | "5m" | "15m" | "24h" | "1y" | "7d" | "30d" | undefined;
|
|
37
37
|
}>, "many">, z.ZodObject<{
|
|
38
38
|
items: z.ZodArray<z.ZodObject<{
|
|
39
39
|
address: z.ZodString;
|
|
40
40
|
chainId: z.ZodString;
|
|
41
|
-
timeframe: z.ZodDefault<z.ZodEnum<["15m", "1h", "24h", "7d", "30d", "1y"]>>;
|
|
41
|
+
timeframe: z.ZodDefault<z.ZodEnum<["5m", "15m", "1h", "24h", "7d", "30d", "1y"]>>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
43
|
address: string;
|
|
44
44
|
chainId: string;
|
|
45
|
-
timeframe: "1h" | "15m" | "24h" | "1y" | "7d" | "30d";
|
|
45
|
+
timeframe: "1h" | "5m" | "15m" | "24h" | "1y" | "7d" | "30d";
|
|
46
46
|
}, {
|
|
47
47
|
address: string;
|
|
48
48
|
chainId: string;
|
|
49
|
-
timeframe?: "1h" | "15m" | "24h" | "1y" | "7d" | "30d" | undefined;
|
|
49
|
+
timeframe?: "1h" | "5m" | "15m" | "24h" | "1y" | "7d" | "30d" | undefined;
|
|
50
50
|
}>, "many">;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
52
|
items: {
|
|
53
53
|
address: string;
|
|
54
54
|
chainId: string;
|
|
55
|
-
timeframe: "1h" | "15m" | "24h" | "1y" | "7d" | "30d";
|
|
55
|
+
timeframe: "1h" | "5m" | "15m" | "24h" | "1y" | "7d" | "30d";
|
|
56
56
|
}[];
|
|
57
57
|
}, {
|
|
58
58
|
items: {
|
|
59
59
|
address: string;
|
|
60
60
|
chainId: string;
|
|
61
|
-
timeframe?: "1h" | "15m" | "24h" | "1y" | "7d" | "30d" | undefined;
|
|
61
|
+
timeframe?: "1h" | "5m" | "15m" | "24h" | "1y" | "7d" | "30d" | undefined;
|
|
62
62
|
}[];
|
|
63
63
|
}>]>;
|
|
64
64
|
export type TokenPriceHistoryBatchParams = z.input<typeof TokenPriceHistoryBatchParamsSchema>;
|